When I was attending the University of Texas in the early 1960s, state law forbade prescribing contraceptives to an unmarried woman unless she was going to get married within 10 days. This law was enforced and obeyed. To obtain the pill, women had to go to a doctor and claim to be about to get married. Some doctors went along with it; some threw the girl out. It was a nerve-racking experience.
And now that the Supreme Court has discarded Roe v. Wade and Justice Clarence Thomas has advocated going after contraception next, do not imagine that some state legislatures anxious to please the Christian right would not resurrect such laws.