Depends on what prison and what you are in for.
I know someone who's husband got raped repeatedly when he was locked up, I also know someone who was in an institution so soft he used to have a mobile phone in there with internet access and the guards never bothered to look for it.