Lots of variables
Your excellent question is hard to answer, because it depends on who died, age of child, effect on rest of family, and many other variables.
Research shows that children
who lose their mother before age 11 are at increased risk of depression
as adults, but there are many possible explanations. Broadly, helping children grieve in age-appropriate ways is best way to minimize lasting impairment.