Another way to say "having sex is for fun" is "Fun is one byproduct of sex."