It's a crapshoot, really, and all dependent on the quality of work.
My story:
I bought my 4Runner several months ago and knew it hit a deer when it had 45,xxx miles on it. Not a problem. All repairs were completed in a professional manner.
The surprise I got, however, was after I passed the check and had the vehicle in my driveway. As I was cleaning out the glovebox of various receipts I found a dealer slip for something like $7200 for an engine replacement shortly after the time of the accident......yes, a fricken engine replacement!! Luckily is was a dealer slip which eased the pain a bit but holy crap!! A small detail that the seller mysteriously "forgot".
That all said, no issues so far and the vehicle currently has 127,xxx on the meter.