Even if the dead person is their own father, mother, brother, or sister, they must not defile themselves, for the hair on their head is the symbol of their separation to God.
“A priest must not defile himself by being in the presence of a dead person unless it is his father, mother, child, brother, or unmarried sister. In such cases it is permitted.
But some of the men had been ceremonially defiled by touching a dead body, so they could not celebrate the Passover that day. They came to Moses and Aaron that day