I am certainly not an expert, but:
https://infopart.org/zf-1060030050-part Says yes.
I have read that the early 1997 transmission control modules may not be fully compatible in the later cars, so I'd recommend picking up the TCM as well if it is available with the transmission.
This is fun to browse through if you like parts catalogs:
https://www.zf.com/global/media/zf_media/document/int_print_catalogs_documents/usa_4/5hp19flporsche.pdf
I have a ZF5HP19FL in a VW Passat Parts car that I will probably put in a Boxster eventually just to satisfy my curiosity. It looks like I'll just have to swap a few peripheral items over.