If anything, infection from current circulating virus is more relevantly effective (but obviously more dangerous than the vaccines).
What I wonder is how much post-infection immunity might be from something other than just the spike protein, and therefore a bit more flexible against new variants than our strictly 'detect the spike protein' vaccination programmes.
And how 'flexible' immunity is from infection vs. vaccination.