No More Learning

If you are plagued by thieves and you catch one and           flog him, and then do the same for several' more, the thieves will get the idea not to come any more?