The effect of punishing someone is making it less likely that they will misbehave.