Even if it's counted, is it even more dangerous, counted using the same metrics? I have no idea, but it's not far-fetched that it's not, at least if we mean American soldiers. Like, it's way more dangerous to be an Iraqi civilian than an American soldier.
Really depends on the country. In the US, death rate is really low. There might be a couple instances of getting shot at, but you're so much less likely to die of other causes it ironically makes up for it.
Of course, you get these spikes in death rates in the military, like if you're sent to an active warzone. We just measure "dangerous jobs" by year.