Yes, and in both US and rest of the world police can use deadly force when their life is in danger. The laws are effectively the same. In practice:
Talking about what “legal framework” allows to happen while ignoring reality is pointless, disingenuous and purposefully misleading.
