Yes you can do it and it's not very hard. But you will have to use every sensor and accessory bracket from the '97, including the intake manifold and distributor. There aren't too many sensors so it doesn't take too long. If you do it just take your time and look at everything before you drop it in (it is a lot easier to swap parts with both motors out).
The motor mounts are the same.