(Assuming you mean the obvious and immediate semantics of digging a hole and placing the corpse within it...)
It may be now, but there are many ways to provide corpse disposal without risking health. Sky and tree burials are clear evidence of other corpse disposal methods. I imagine cremation is pretty obvious to humans too.
Some people even exhume the bodies and perform rituals with it. I find this nauseous but it wouldn't be a thing if societies were being eliminated from its effects.