Well in itself, I don't think that's enough to say that things are fair.
For example, that wouldn't take into account hiring biases. If women have a real hard time getting jobs in those roles, what does it matter if people in those roles get paid the same, regardless of gender?
I feel the main issue with the gender gap discrimination discussion is that people try to simplify it to show that there is or isn't a bias, and it's really easy to simplify it in a way that would support either side of the discussion. The discussion is a really complex one and there are so many aspects to it that can't be accounted for (confidence in negotiating salary, aversion to risk or working longer hours, likelihood to want to take time off for family, differences in natural abilities, etc).
After all, if women are more represented among junior positions and less among senior positions, some people might blame childbirth - but other people will blame systematic biases like family-unfriendly policies and unconscious biases.