To be fair, that's valid for anyone that doesn't have "absolute pacifism" as a cornerstone of their morality (which I reckon is almost everyone)
Heck, I think even the absolute pacifists engage in some harming of others every once in a while, even if simply because existence is pain
It's funny how people set a far higher performance/level of ethics bar to AI than they do to other people