That's not pacificism. That's the belief that most people hold with the caveat that defense of self and others against that kind of violence is a necessary evil. Pacificism is never wanting to do violence at all to any living thing.
Being a pacifist, Ghandi opposed violence and supported passive resistance during WWII. But how exactly did that help stop Hitler or the Japanese empire?