Not necessarily. In the vast majority of cases, being in close contact with a corpse, before it's gotten serious about decomposing, is not a big deal. I would guess the few cases where it is a problem are not enough to exert significant selection pressure.