2002 Engine replacement

#1
helIo im new to this and i cant find my answer anywhere. but i have a 02 corolla and the engine is "dead" ive been looking into replacing the engine from one that is the same year that was "totaled" via rear end. but its a ce while mine is a S. can i still replace it because my uncle is telling me it has to be the same trim?
 
Top