Its a tiny part (pardon the very inappropriate pun) of a much larger issue within an individual.
Compulsary castration is wrong, it has not yet been proven to work - and those that it has worked on, may well have managed to curb their behaviour with CBT anyway, because clearly they wanted to change their behaviour.