Hello and welcome to JustAnswer!
Although they are close in appearance there are many differences in the two. They won't interchange. If you let me know what year truck you need the trans to go in I'll be able to tell you what years are compatible for sure.
Do you have a four wheel drive or two wheel drive truck?
You're welcome, and good luck!