A 1997 SS Camaro likely has an LS1 engine. Whether this will fit in a Z28 depends heavily on the Z28's year:
* 1998-2002 Z28s: These also used the LS1, so the swap would be *relatively* straightforward, but still requires attention to wiring, mounting, and potentially exhaust system. You might find that some parts are interchangeable or need minor modifications.
* Earlier Z28s (pre-1998): These cars used different engines (like the LT1 or earlier small-block Chevy engines). An LS1 swap is significantly more involved and would require significant modification to the engine bay, wiring harness, and potentially the transmission and other supporting components.
* Later Z28s (post-2002): These would require even more careful consideration as the engines changed again.
In short: While *possible*, it's not a simple "bolt-in" job unless both the Z28 and the SS are from the same LS1 era (1998-2002). You'll likely need mechanical expertise and potentially custom fabrication to make it work for years outside this range.