Yes, within very strict bounds.
Specifically, the only justifiable reason I can think of is as an affirmative action policy. If it is clear that a woman's apparent qualifications on paper do not represent her actual ability in the field due to institutional sexism having put barriers in her achievement trajectory, it is actually unjust and unfair to not take that into account. It's literally as unfair to not take into account someone's race or gender or class or geography when adjudicating their qualifications as it is to not take into account their volunteer work.
Aside from that, it should not be allowed to hire more young girls than boys and men to have a "pretty" workstaff, or to hire more women because they are ostensibly on average more empathetic, etc. It would be reasonable to want to have a good balance of men and women in some service capacity: For example, social work organizations should probably make sure to have at least 25% of women and men because it is a relevant metric for service.