With respect to how both environments force humans to adapt to the institution, and thereby manifest a perverse socialization, yes. The differences are in magnitude, not direction.
I'm reminded of the flawed "alpha" theory of wolf behavior. Turns out the observed dominance struggles were directly related to being in captivity; this form of "socialization" doesn't emerge in the wild.