No they are not the same engine, AMC vs Chrysler, they can be swapped, they are not a bolt up but there are adapters and many articles on how-to. There are articles about how to put a 4.0 head on a 4.2 for more power but requires some mods, not sure on which manifold fits what.
But (always a...