If the woman is already pregnant, then the sex of the child is already decided. The baby, at this moment, is already either a boy or a girl. If the baby is a boy, then the prayer is unnecessary. If the baby is a girl, no amount of praying will change that.
Stick with prayers for a healthy mother and child during and after pregnancy.