If you think casual sex is a good thing, it might actually be a good thing.