I would add the caveat that things have not been completely worked out yet. I agree that religious customs around sex served a practical purpose.
However, easier access to sexual pleasure seems to have unintended consequences. Traditionally, a woman and her family should be damn sure that a particular man is worthy of female costs of pregnancy. So there was more pressure exerted on men to be worthy of sex. Easy access to sexual pleasure lowers the bar for men.