Pregnant but not married

HAS to? Says who? You? Assuming she’s not a wombed automaton and has her own free will, she can raise her child in any community of her choosing (hopefully one where the members are not more concerned with other people’s personal lives than they are with their own).