Shame, public humilation etc. are the best ways to teach anybody to hate the punisher. Negative punishment always backfires. If you want to cruelly destroy your child's self-esteem, and cause them to want to murder you while you are sleeping, then yes, it will change your childs' behavior very effectively.
By the way, shame and public humilation is also considered mental cruelty and can earn you a visit from child protection agencies.