I think there is some debate about that. Catholics look to....oh man I think it is Corinthians 3:12-15 to say there is some evidence of purgatory.
Jesus died to pay the penalty for our sins. Jesus suffered for our sins so that we could be delivered from suffering. To say that we must also suffer for our sins is to say that Jesus’ suffering was insufficient. To say that we must atone for our sins by cleansing in Purgatory is to deny the sufficiency of the atoning sacrifice of Jesus
(1 John 2:2). The idea that we have to suffer for our sins after death is contrary to everything the Bible says about salvation. There is nothing we can personally do to be worthy. We have filthy rags. So, this purgatory belief is untrue and not in the bible at all.
The passage
(1 Cor 3:12-15) is using an illustration of things going through fire as a description of believers’ works being judged. If our works are of good quality “gold, sliver, costly stones,” they will pass through the fire unharmed, and we will be rewarded for them. If our works are of poor quality “wood, hay, and straw,” they will be consumed by the fire, and there will be no reward. The passage does not say that believers pass through the fire, but rather that a believer’s works pass through the fire.
1 Cor 3:15 refers to the believer “escaping through the flames,” not “being cleansed by the flames.”
(By the way, the works of a believer are not good deeds to earn their way to heaven - they are the good works given to them from the Holy Spirit. There are rewards in heaven for those who were willing to surrender and do good works for the Lord while living down here on the earth)