I voted no on the assumption that you did not mean in the case of a child dying. I do believe long jails sentences and chemical castration should be required.
But castration wouldn't stop molesting..
It stops the desire. At least that is my understanding.
In the case of general rape its not true. In studies done on rapists who had this treatment it did not stop the desires and those who became free after their sentences went on to rape again, but used objects and such since they couldn't use their body. its more about power than sex. how this translates to pedos I am not sure