Earlier quoted context omitted.
Please don't do this. This is a horrible way to train dogs, and not only is the efficacy questionable but it will very likely lead to behavioral issues down the line.
It's not a horrible way to train dogs. What is horrible is the image you have in your mind of what I am saying, which is a misunderstanding.
I saw from your other comment that you learned this from Cesar Milan. Well like most celebrities, his advice can actually be harmful. You have to realize this entire guy's job is to sell you himself so he can make money from his brand.
https://medium.com/@vandanni.hadai/cesar-millan-the-problem-...
EDIT: Redacted recommendation based on comment. Normally I'd leave it, but if there's even a 5% chance that comment in the reply is true I do not want to encourage it.
Instead, try this book: https://www.amazon.com/gp/product/0761168850