Yes. There are many places in the Bible where killing was just, and necessary.
Jesus told people to sell spare cloaks and buy swords.
IYAS9YAS: "Yes. There are many places in the Bible where killing was just, and necessary."
It's simply the difference between just and unjust taking of lives.
Murder, by definition, is unjust killing.
But the Old Testament requires death as a just penalty for capital crimes, including murder.
So when people use "Thou shall not kill" as an excuse to, for examples, abolish capital punishment or refuse participation in all wars they are, yet again, abusing the Bible's intended meanings.