If your swapping the motor and trans, you'd have to modify motor and trans mounts, adapt the wiring harness/ computer, swap drive shafts, ETC ETC.
Yes, you could do it, but unless you have a LOT of free time you're better off finding a 4cyl truck to replace the 3.0 truck. And may I ask why you’re looking into this swap?