You asked

Is the nikon z 17 28mm f 2 8 good for astrophotography?

Here is what the site says about that.

From Nikon Z 17-28mm f/2.8: Nikon Z 17-28mm f/2.8: A zoom lens by Nikon for Full frame cameras, 17-28mm f/2.8. Specs - Maker: Nikon - Focal length: 17-28mm (zoom) - Maximum aperture: f/2.8 - Made for: Full frame sensors - Mounts: Nikon Z - Stabilised: no - Autofocus: yes What it frames like - On full frame (Nikon Z): as marked, 17-28mm. - On APS-C (Nikon Z): like 26-42mm on full frame; f/2.8 gives about the depth of field ...

From Sensor sizes: The main sizes: - Full frame (36 x 24mm, the size of a 35mm film frame). The reference size: when people quote a focal length "in full-frame terms", this is what they mean. - APS-C (about 23 x 15mm). Crop factor about 1.5x (1.6x on Canon). Most entry and mid-range mirrorless cameras. - Micro Four Thirds (about 17 x 13mm). Crop factor 2x. Small, light systems from OM System and Panasonic. - 1-inch ...

Quoted from this site's pages.

From these pages