Z test: can I use it in this context ?

Hello all. Nice to meet you.
I would like to consult you regarding a problem I'm facing:
Imagin you have a dataset containing all of the operating workplaces in a certain city (say, 500 in number). The dataset contains the workplace name, average salary and percentage of workers by race and gender.

Can I use Z test in order to determain if there is a significantly lower salary in workplaces with high precent of women ? Or high precent of non-caucasian ?