can a transmission be damaged in a rearend collission. on 2005 Toyota Camry

like not going into gears,also can the engine be damaged as well.

Asked by for the 2005 Toyota Camry
Assuming it is not an ALL WHEEL DRIVE and did not get shoved into anything, NO to both questions!