You don’t effectively fight fear-based behaviors (lying, stealing, cheating, irritability/anger) by adding more fear through punishment.
That makes about as much sense as using a hot flame to heal a burn wound.
An authentic desire to understand the feelings and fears behind a behavior, accepting those fears without judgment, and working through those fears in a kind way is the only balm that truly works.
Sure, punishment can stop an unwanted behavior. But the motivation will be fear, as opposed to authenticity, and life will be riddled with anxiety, worry, and pressure. What is it to gain the world and lose your soul?