Children inherit the qualities of the parents, no less than their physical features. Environment does play an important part, but the original capital on which a child starts in life is inherited from its ancestors. I have also seen children successfully surmounting the effects of an evil inheritance. That is due to purity being an inherent attribute of the soul.
Mahatma Gandhi (1948). “Autobiography: The Story of My Experiments with Truth”, p.276, Courier Corporation