Is Shaming A Form Of Deterrence?

Is Shaming A Form Of Deterrence? Or they might use their jail time to hunker down and think; they anticipate future shame, which has a deterrent effect on criminal activity. So shame might cause some people to blame others, but it could lead others toward rehabilitation and a brighter future. Is public shaming an effective