If your foundation is Christ you shall be saved through the fire even if your works burn up like hay or stubble.
1 Corinthians 3
11For no one can lay a foundation other than...Jesus Christ
14If the work that anyone has built ..survives, he will receive a reward. 15If anyone’s work is burned up, he will suffer loss, though he himself will be saved, but only as through fire.