Whether anyone is punished for another's sin?

Objections

Objection 1 : It would seem that one may be punished for another's sin. For it is written (Ex. 20:5): "I am . . . God . . . jealous, visiting the iniquity of the fathers upon the children, unto the third and fourth generation of them that hate Me"; and (Mt. 23:35): "That upon you may come all the just blood that hath been shed upon the earth."
Objection 2 : Further, human justice springs from Divine justice. Now, according to human justice, children are sometimes punished for their parents, as in the case of high treason. Therefore also according to Divine justice, one is punished for another's sin.
Objection 3 : Further, if it be replied that the son is punished, not for the father's sin, but for his own, inasmuch as he imitates his father's wickedness; this would not be said of the children rather than of outsiders, who are punished in like manner as those whose crimes they imitate. It seems, therefore, that children are punished, not for their own sins, but for those of their parents.