Either way, yes. That’s why we don’t have rehab instead of retributive isolation. It takes a strong body to survive physically, a strong mind to survive psychologically. By the time someone finds themselves in that position, society has robbed them of both, only rarely do prisoners —in or outside— go within and escape the trap. If we ever want a better society, we need to address ourselves, honestly, to address society, clearly.
Well to be honest, pretty much everyone going through jail ends up worse when they get out, either more violent and willing to do more crimes, or unable to integrate society after. It's fucking useless.