The Old Testament condemns casual sex. To condemn something it has to exist. And there are books from most of literature periods in which you can find examples of such "hookup culture", maybe except for romanticism, as it was very in to worship your one true love and kill yourself if she/he didn't like you.