This is literally the core finding of people studying how to clean up corruption in developing nations, which is linked to all sorts of positive outcomes. Graft comes from seeing other people get away with it. Public punishment is important!