Yes, but with strict guidelines - never above the waist, only ever with an open hand and NEVER in anger - it's discipline, not punishment. You can't reason with a toddler, they haven't yet learned how. Pain is a mechanism built into our species over millenia - if an action brings pain, we cease doing it. Ever raised a puppy?