Would you buy a previously damaged car?

I’m looking into buying a car right now. I found a pretty good one, but it has gotten in a pretty bad wreck. Even though it has been fixed and looks great, I’m afraid the structure and alignment might not be just right anymore, and that could mess with the car. Is that a legitimate fear? If it is, is there any place that would check for something like that? I don’t if it matters, but the damage was to the front driver side.