All other things being equal, during performance of their duties, yes they are. Simply by virtue of the fact that they are constantly exposed to violent nutcases.
I have personally known 4 cops who were killed on duty.
I do not know any innocent civilians killed by a cop using questionable judgement. That tells me something.
Do you know of any guilty civilians killed by cops.
Innocent cops (if there are any) get paid to take that risk. Civilians don’t...