Yup.
My 1997 I bought had a blown motor in it. I installed a new take out 1999 motor with 7 miles on it and all I had to do is change a few vacuum lines over and wha-la she runs.
As long as the PCM stays the same, it does not care what year the motor is.
~F~