Yes, of course it is. If people choose different careers, it is perfectly reasonable that their pay will be different. Paying a woman less for the same job is wrong, but there's no problem if women in aggregate are making career choices that mean they have lower average income as a group.