I have always thought so, and the danger of the job is a large reason why police get so many special privileges, from outsized pensions to minuscule accountability for people they shoot or kill.
But police are not among the top most dangerous professions -- they are not even in the top 10. Being a taxi driver is more dangerous ( and in fact for 2015 the #1 cause of death on the job was traffic accidents). We don't fetishize garbage collectors like we do police but they die on the job at twice the rate as do police.
In fact, the rate at which police are killed by gun violence is not substantially higher than for the average citizen. In 2015 there were 39 firearms deaths of police (from the source above). Given the way that firearms stats are reported broadly, these are probably not all killings by other people (some police likely are killed by accidental discharge, etc). But assuming they are all gun killings, and assuming about 900,000 police (I get a broad range of estimates for this seemingly simple number) gives a rate of 4.3 per 100,000 per year, not much higher than the US gun homicide death number of 3.55 (you may have seen much higher numbers of gun death numbers -- over 2/3 of these are suicides).
Postscript: The current media model is breaking the Internet. I have seen the chart a ton of times on the most dangerous professions, so I searched for it. Do it yourself. The first 8 or 9 links all turn out to be the stupid new media format of requiring 10 clicks to get through a list. I simply refuse to ever click on these things. It is a horrible way to present information. I suggest you boycott them as well.