A998 to 904 Trans swap????

I have a 87 Ramcharger with a bad 998 trans and I have a 76 Tradesman with a good 904.

My question is can I take the 904 that is behind a 318 and use it on my Ramcharger (also with a 318) in place of the 998? I don't plan on hot rodding the SUV I just need it to get back and forth to a job.

Before it is suggested I cant afford to pay a trans shop to rebuild the 998, and I have tried to rebuilt a trans before only to have it end horribly.