Look, it doesn’t matter whether it’s genetic or not.
There is a lot of evidence that alcoholism is genetic. That doesn’t excuse alcoholic behavior.
By extension, the Bible says that the sin nature, in all its expressions, is genetic, having been inherited from the first parents. The first child born on the Earth, Cain, was a murderer, having murdered his ow brother.
That does not excuse sinful behavior.
For I, the Lord your God, am a jealous God, visiting the iniquity of the fathers upon the children to the third and fourth generations of those who hate Me, but showing mercy to thousands, to those who love Me and keep My commandments.
Deuteronomy 5:9-10