No, that is exactly what punishment is for. Punishment is made to influence us humans, because we are the ones who do bad stuff. It is a fundamental principle of the universe that nothing changes unless pressure is applied, so we try to apply larger punishment than the damage done, hoping that it will prevent further wrongdoings from the same person.