Children really do thrive on boundaries, and sometimes the only way to establish those is with force (take their hand and make them clean it up) or other punishments.
-- G.K. Chesterton
Punishment definitely works in the long run. That's what society is based on.
Punishment should come after reinforcement - but with equal consistency.