What all will fit?

Hi all. Will the OE auto that's behind a 4.7 2WD Dakota bolt up to any SBM or V-6 mopar?
Want to replace the 4.7 with a 360 or 5.9 Magnum.
Thanks for passing thru :thumbsup:
What year of Dak?