2000 dodge dakota motor engine swap

I have a 2000 Dakota sport with a 4.7 magnum motor 16 tooth vin# (N) has a bad head gasket i have a chance to buy a 2003 4.7 motor and trans vin # (H) 32 tooth
out of a Dakota SLT will the motors swap out and are the computers the same
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.