I don't think so. If you look at the context of
Matthew 7:22 it says, "that day".
22 Many will say to me
in that day: ‘Lord, Lord,
+ did we not prophesy in your name, and expel demons in your name, and perform many powerful works in your name?’
+ 23 And then I will declare to them: ‘I never knew you! Get away from me, you workers of lawlessness!’
+
What day? Isn't it the day the goats go off into destruction? Matthew 25:41 Then he will say to those on his left, "Depart from me, you who are cursed,
into the eternal fire prepared for the devil and his angels."
Every tree not producing fine fruit is cut down and thrown into the fire.
Matthew 7:19