You asked
Can I use the tamron sp 45mm f 1 8 on a nikon z camera for portraits?
The site's listing for the Tamron SP 45mm f/1.8 Di VC USD gives only two mounts: Canon EF and Nikon F. It doesn't list Nikon Z, so the guide can't confirm that this lens fits a Nikon Z body. Check the lens specs and the camera's own documentation before you buy.
If your Nikon Z camera is full frame, the lens frames as marked at 45mm. That is a slightly tighter view than the natural 50mm the portraits guide recommends as the cheapest great portrait lens, so it works well for head-and-shoulders shots. On an APS-C body it would frame like about 68mm, which is a comfortable portrait length but a different look. The f/1.8 aperture gives soft backgrounds, as explained in aperture and background blur. Moving your subject away from the background often helps as much as a faster lens. The lens is also stabilised, which steadies the camera rather than the subject, so it helps most with still portraits.
For portraits, the guide's classic choice is the 85mm f/1.8 on full frame, which gives flattering perspective and comfortable working distance. The guide also suggests a 50mm f/1.8 as a first lens for people, and the first lenses section explains how to build a kit around one.
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}.