Blessings to You Ado-nai Our God Sovereign of the Universe who made us holy with the mitzvoth and instructed us to busy ourselves with Torah study.
As it is stated: “If a man has a stubborn and rebellious son” (Deuteronomy 21:18), which indicates that the penalty for rebelliousness is imposed upon a son, but not upon a daughter; and upon a son, but not upon a fully grown man. A minor under the age of thirteen is exempt from the penalty imposed upon a stubborn and rebellious son, because he has not yet reached the age of inclusion in mitzvot.
The Torah in Exodus claims God will punish not only the current, but also future, generations for sins.
(ז) נֹצֵ֥ר חֶ֙סֶד֙ לָאֲלָפִ֔ים נֹשֵׂ֥א עָוֺ֛ן וָפֶ֖שַׁע וְחַטָּאָ֑ה וְנַקֵּה֙ לֹ֣א יְנַקֶּ֔ה פֹּקֵ֣ד ׀ עֲוֺ֣ן אָב֗וֹת עַל־בָּנִים֙ וְעַל־בְּנֵ֣י בָנִ֔ים עַל־שִׁלֵּשִׁ֖ים וְעַל־רִבֵּעִֽים׃
(7) extending kindness to the thousandth generation, forgiving iniquity, transgression, and sin; yet He does not remit all punishment, but visits the iniquity of parents upon children and children’s children, upon the third and fourth generations.”
The next text comes from later in our par'asha...
For the New Year, season of Teshuva, are we only responsible for what we've done or can guilt pass to others, even the next generation?
(1) If you see your fellow’s ox or sheep gone astray, do not ignore it; you must take it back to your fellow. (2) If your fellow does not live near you or you do not know who he is, you shall bring it home and it shall remain with you until your fellow claims it; then you shall give it back to him. (3) You shall do the same with his donkey; you shall do the same with his garment; and so too shall you do with anything that your fellow loses and you find: you must not remain indifferent. (4) If you see your fellow’s donkey or ox fallen on the road, do not ignore it; you must help him raise it.
What type of world does the Torah envision with these teachings about lost objects?
Despite this, it occurred that there was one whose father said to him: Climb to the top of the building and fetch me chicks. And he climbed to the top of the building and dispatched the mother bird and took the young, thereby simultaneously fulfilling the mitzva to dispatch the mother bird from the nest and the mitzva to honor one’s parents, but upon his return he fell and died. Where is the goodness of the days of this one, and where is the length of days of this one? Rather, the verse “that it may be well with you” means in the world where all is well, and “that your days may be long” is referring to the world that is entirely long.(the world to come)
With regard to the same verse, Rava said: After departing from this world, when a person is brought to judgment for the life he lived in this world, they say to him in the order of that verse: Did you conduct business faithfully? Did you designate times for Torah study? Did you engage in procreation? Did you await salvation? Did you engage in the dialectics of wisdom or understand one matter from another? And, nevertheless, beyond all these, if the fear of the Lord is his treasure, yes, he is worthy, and if not, no, none of these accomplishments have any value. There is a parable that illustrates this. A person who said to his emissary: Bring a kor of wheat up to the attic for me to store there. The messenger went and brought it up for him. He said to the emissary: Did you mix a kav of ḥomton, a preservative to keep away worms, into it for me? He said to him: No. He said to him: If so, it would have been preferable had you not brought it up. Of what use is worm-infested wheat? Likewise, Torah and mitzvot without the fear of God are of no value.

