^^ Why not? Repairs happen daily to far worse damages.
The vehicle is designed to crumple on one hit. Things are designed to get damaged. After its crashed the designed weaker spots do their job of keeping the forces at work out of the cabin. Keep you from getting hurt. Now take the same repaired vehicle and crash it again. The design elements have been altered from factory fresh to repaired. The body man might have had to heat up high strength steel parts to align it back.
It won't behave the same in another crash. Of course it'll drive straight. The front end can be aligned. But don't think you can sue Toyota if it doesn't perform like it did in the first crash.