Would the 4.7 liter from my 1999 Jeep Grand Cherokee fit in an A body?

A friend of mine had a couple of Durango's with 4.7s and both had issues with the aluminum heads and he couldn't find usable replacements except new bare heads from the dealer that cost more than the Durango was worth.Needless to say,neither of them got fixed.
No brainer that I'd take a Magnum 5.2 or 5.9 over one of those turds.