According to the World Health Organization:
The micro-organisms responsible for the decomposition of bodies are not capable of causing disease in living people. Most infectious agents of public health concern that may be present at the time of death will themselves die within hours of the person dying.
So if you are ever in a major disaster you should help the living before burying the dead.
Here is the article: