No, there are many reasons why this is the case, but the most important one is that it is simply not allowed. Beating a student is considered a form of child abuse, and it is illegal in India.
Aside from the legal ramifications, there are also moral and ethical reasons why a teacher should never beat a student. A teacher is supposed to be role model for their students, and violence is never an acceptable way to solve problems.
If a teacher ever finds themselves in a situation where they feel the need to resort to violence, they should immediately seek help from their superiors. There are other ways to discipline students that are much more effective and humane.