Yep, but when you mess with the God-given gift of creating human beings trouble abounds.
Oh, there’s no doubt about that!
The situation with Abraham, Sarah, and Hagar is the first time the Bible details, in newspaper fashion, a situation of immoral conception of a child and the (very long-term) bad results that follow.
If one reads Genesis and Exodus for detail, one can also see the twelve tribes of Israel operating in matrilineal factions. “Mother and children” is the natural power bloc in a polygamous (legally or de-facto) society. A woman’s most important relationships are with her brothers and sons, not her father or husband.
It’s a messy business. The Greeks dealt with it, too.
and the child suffers.