You may wish it were so but it isn't. Just check your local sex offender registry and see how many have comfortably completed prison terms.
It's because sex offenders are segregated from other inmates.
Not for the criminally insane where I worked as a nurse, they all go in together, one big happy family!