depends if the codes match for the engines. Often enough tho a different year car requires more work and parts often if you use a older or newer modal engine they some times need the wiring harness and ecu's to work right in the car your putting it in from the older one.
Search Volkswagen Jetta Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Volkswagen Jetta Experts