Doesn’t the phrase “though shall not kill” in the bible only refer to illegal killings?

If so i guess that would mean self defence, death penalty for criminals, suicide and abortion isn’t a sin.

Doesn’t the phrase “though shall not kill” in the bible only refer to illegal killings?
Post Opinion