Does a Godly Home Really Guarantee Godly Kids?

Proverbs 22:6 says, “Train a child in the way that he should go, and when he is old he will not turn from it.” But does that really mean that raising kids in a godly home guarantees they’ll grow up to follow Jesus? What about all the kids who were raised well, but walked away from God as adults?