Not having sex is not a sin.
Not producing life as a result of your absinence - your sacrifice to God, is not a sin either.
However having sex, abusing it, in ways it was not intended, for your own physical pleasure, that is the sin.
Pleasure is not the sin, it is acceptable to have sex in...