The effect of punishing someone is to encourage them not to do something again.