Really? You're going to make me explain warden logic to you?
If you stub your toe you don't need to go to the hospital, so yeah, maybe if you went in you'd be punished. I don't know. I've never tried. If you get yourself stabbed and start bleeding out then it doesn't matter if you choose to go to the hospital or not. The bots take you there when your life signs drop.