You asked
Can I adapt the nikon af s 50mm f 1 8g to nikon z?
The site doesn't say whether the Nikon AF-S 50mm f/1.8G works on a Nikon Z body. Its catalogue page lists only Nikon F as this lens's mount, and the Z cameras aren't among the cameras it fits. The guide can't confirm an adapter setup for it.
The lens is a strong choice on its own terms. The Nikon AF-S 50mm f/1.8G page shows it as a full-frame 50mm with autofocus and no stabilisation. The Portraits guide calls the 50mm f/1.8 the cheapest great lens in photography, and the Lenses guide recommends it as a first fast prime for low light, people and food.
The Lenses guide's adapters section says mirrorless mounts are shallow, so old manual-focus film lenses adapt easily and cheaply. That passage is about manual lenses, though, and it doesn't cover an autofocus lens like this one on a Z body. Check an adapter's compatibility with the exact lens and body before you buy.
If you're choosing between Nikon F and Z, the 50mm works well on a full-frame Nikon F body, where the catalogue confirms it fits and frames as marked.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.