if both cars are equiped with the same engine 3.1 , 3.4 or even the 3.8 then yes the interchange will go rather smoothly you may need to change over some sensors and maybe reuse the manifolds out of the car you want
if the engine sizes are not the same you may run into motor mount issues and even computer progamming issues