>> “Is it related to Catholic concept of purgatory?” <<
.
Yeshua called it “outer darkness,” and it is forever!
As the parable of the virgins makes plain, you are either ready when he returns in the clouds with his angels, or you are permanently out of luck.
Yes and Mathew 7:24 makes plain, it’s the relationship that’s key. He either knows you are he doesn’t.