Not necessarily. The time spent at the job and the quality of the work should also count.
Because I don’t want to get paid the same as a man when I do waaaaaaaaay better work. I should get paid more. Especially if I have to finish up the work that he is too lazy to do.