Yes, because a child's peers have more influence on their development than your parenting: https://www.psychologytoday.com/us/blog/the-scientific-funda...
"Behavior geneticists contend that the rough rule of thumb when it comes to the determinants of child development is 50-0-50, that is, roughly 50% of the variance in personality, behavior, and other traits is heritable (influenced by genes), roughly 0% by the shared environment (what happens within the family and is experienced by all siblings), and roughly 50% by the nonshared environment (what happens inside and outside of the family, not shared by siblings)."
As an adult, you might be able to compartmentalize dysfunctional people and evaluate their behavior in a neutral manner. But children are not rational like adults. Their frontal cortex isn't fully developed until their mid-20s.