Used car w/ rebuilt title - it's been in an accident - is it OK?

Some times the front fender is bent all the way to the rear license plate. Then there are unimportant parts like wiring, ball joints, control arms and things that are sort of OK but left on the car despite being bent, buckled, distorted or mutilated.