Here's what to consider:
* Engine Code: The engine code cast into the engine block will tell you the exact specifications. Engines with different codes might have internal differences. Even if the displacement is the same, subtle changes in components can occur year to year.
* Computer/ECU: The engine control unit (ECU) is calibrated specifically for the year and model of the vehicle. Swapping engines may require reprogramming the ECU or using the ECU from the donor vehicle, which can sometimes be problematic.
* Wiring Harness: The wiring harness connectors might be slightly different. While many connectors are standardized, there's always a possibility of minor variations.
* Accessories: The location and type of accessories (alternator, power steering pump, etc.) might vary. You may need to swap these components as well.
In short: While it's *likely* the blocks themselves would be interchangeable, you'll need to investigate the engine codes and thoroughly compare the wiring harnesses and ECUs to ensure a successful swap. Simply having the same displacement isn't enough to guarantee compatibility. A professional mechanic would be the best resource to assess compatibility definitively.