Lamentations 5:7 Our fathers have sinned, and are not; And we have borne their iniquities.
God doesn’t punish a child for his parents sin but they do suffer because of their parent’s sin. When a parent does wrong and suffers then the children that are so closely associated with him will suffer also. The drunkard’s family will not have money to eat and clothe themselves because of his waste. God is not punishing the child because of the parent’s sin but the child is still suffering.
Your sin hurts others. Get right with God. Do not continue to live in sin!