Do Children Die For the Sin of Their Parents?

Topic:
Category: Questions & Answers
Bible: Deuteronomy 24:16, Ezekiel 18, Joshua 7

Why does the Bible indicate in some places that God does not punish children for the sins of the father, and then in other places indicates the opposite?