Yes, but only if deadly force is necessary. Courts consider not only the officer's actions but also the victim's actions before the deadly blow. If police kill unnecessarily, they can face criminal charges.