Welcome, and yes it's possible. Physical swap is straight foreword. 2wd or 4wd? Driveline difference is easily overcome. Is trans with a donor truck that you will get a tcm from? If so then you just need to feed it a signal. Probably easier and better would be a controller from Leroy -http://leroydiesel.com/product-category/transmission/
What's the project?