Can ungoldy people enter the kingdom of God?

Help would be valued on 1 Corinthians 6:9, 10.

1 Corinthians 6:9, 10 describes some of the ungodly at Corinth. “Such were some of you,” says Paul, naming various phases of sin which habitually characterised them, some one sin, some another. A believer might fall into a grave sin, a Noah into drunkenness, a David into adultery, a Peter into cursing and swearing; but these were terrible accidents in their lives, not habitual customs. A lamb might fall into the mire, but it could not rest there; a swine if dragged out of the mire would return to it again. The characteristically unrighteous shall not inherit the Kingdom of God. They must be born again. Such were some of the Corinthians (but not all grossly so), but they were “washed” (i.e., from the defilement), “sanctified” (i.e., from the habit), and “justified (i.e., from the guilt) in the Name of the Lord Jesus, and by the Spirit of our God.”