Does God Punish Sons For The Sins Of Their Fathers?

So how should we understand God’s words in Exodus?