You asked

Is the tamron 20 40mm f 2 8 di iii vxd good for astrophotography?

Here is what the site says about that.

From Tamron 20-40mm f/2.8 Di III VXD: Tamron 20-40mm f/2.8 Di III VXD: A zoom lens by Tamron for Full frame cameras, 20-40mm f/2.8. Specs - Maker: Tamron - Focal length: 20-40mm (zoom) - Maximum aperture: f/2.8 - Made for: Full frame sensors - Mounts: Sony E, Nikon Z - Stabilised: no - Autofocus: yes What it frames like - On full frame (Sony E, Nikon Z): as marked, 20-40mm. - On APS-C (Sony E, Nikon Z): like 30-60mm on full frame; f/2.8 ...

From Lenses: Third-party lenses: Sigma, Tamron, Samyang and Viltrox make good lenses for many mounts, often for much less than the camera maker's own. Check that the lens supports your body's autofocus features, and that the maker allows third-party lenses on that mount: not every brand does.

Quoted from this site's pages.

From these pages