The Buddha himself enjoyed having sex during the first 29 years of his life and he got enlightened afterwards!
I ve asked myself the same question many times, why monks are not allowed to have sex??!!