Yes, but there is an implied preference by companies to have more focus on work and less on private life, which is why it's also an implied penalty for the inverse (= having kids as a woman).
And the unfairness here is that only women are physically capable of putting children on the earth, so the penalty is applied to only women, even though both men and women are parents.