Almost any motor swap is possible. Do you have the space, equipment (jack stands, jack, engine hoist or chainfall/come along, time, and a mechanical ability to think outside the normal? Then it gets down to whether it is to your advantage to make the swap, power/cost/desire. How much HELP do you have, an extra pair of hands, another set of eyes and opinions can be a great asset.
For a first time swap, just upgrading from conventional engine management to electronic can be a challenge, but more people have done it, so finding answers to the not so obvious is easier. When changing engine locations or drivetrain styles it can get complicated right off the start. Having the support of these Forums will definitely make the task easier. If you decide to go for it, post up what you are doing - years, sizes, make/model photos before and lots of during, and expect comments through the process. A good build is followed closely by a large portion of board members who have already been there (look at the numbers who consistently read on the hacking of a good looking Samurai body into a TRAILER).