1997 pathfinder 4×4 auto

Will a gearbox from a 2003 xtrail T30 fit and do I have to make any adjustments thankyou