Yes but.... your car will attempt to reject it because they communicate on different DME software. A 3.4L from a 98-99 996 is a simpler transplant and adds 100hp.
__________________
2009 Cayman 2.9L PDK (with a few tweaks)
PCA-GPX Chief Driving Instructor-Ret.
__________________
1998 Boxster with 7.8 DME, 2005 3.6 liter/325 hp, Variocam Plus, 996 Instrument panel
2001 Boxster original owner. I installed used motor at 89k.
1987 924S. 2002 996TT. PST-2
Owned and repaired Porsches since 1974. Porsche: It's not driving, it's therapy.