Dead bodies pose no risk of infection unless the final illness was one of a very few which continue to pose a risk to the living for some time after death, in which case you will be told. Microorganisms involved in the decomposition of a dead body are not pathogenic. More information here.