You asked

Can I adapt the nikon af s dx 17 55mm f 2 8g if ed to nikon z?

Here is what the site says about that.

From Nikon AF-S DX 17-55mm f/2.8G IF-ED: Nikon AF-S DX 17-55mm f/2.8G IF-ED: A zoom lens by Nikon for APS-C cameras, 17-55mm f/2.8. Nikon's pro DX standard zoom: big and heavy. Specs - Maker: Nikon - Focal length: 17-55mm (zoom) - Maximum aperture: f/2.8 - Made for: APS-C sensors - Mounts: Nikon F - Stabilised: no - Autofocus: yes What it frames like - On APS-C (Nikon F): like 26-82mm on full frame; f/2.8 gives about the depth of field of f/4.2 there. ...

From Lenses: Adapters: Mirrorless mounts are shallow, so old manual-focus lenses from film cameras adapt easily and cheaply. It's a fun way to try fast or unusual lenses, without autofocus.

Quoted from this site's pages.

From these pages