彼女に子供が生まれた。

The sentence doesn’t say anything about the baby being a “boy.” A more accurate translation would simply be “She gave birth to a child.”