This is chemical castration, not physical castration. And there is pretty good data showing that it reduces sexual crimes recidivism. It not only affects purely sexual urges, but also violetn fantasies, etc..
There are some side effects, and it only works as long as the drug regimen continues. So it's not a "one and done' thing.