Didn't you say that sex is for pleasure?
The physical act of sex can be for pleasure or for procreation. The biological function of the human reporoductive system, taken as a whole, is for procreation. However, there is nothing wrong with blocking the ability to procreate if such procreation is inconvenient.