Sure you can, it's what the vast majority of police forces in developed countries are doing all the time [0].
That way they also don't end up shooting innocent bystanders, which is apparently quite a common thing in the US [1] [2]
[0] https://www.theatlantic.com/international/archive/2012/05/ge...
[1] https://www.npr.org/2019/12/06/785561122/4-dead-after-armed-...
[2] https://www.nytimes.com/2013/09/16/nyregion/firing-at-man-in...