That view is not supported by all vaccination researchers. The argument against that line of thought is that your immune response to, say, omicron is very specific toward that variant. Consequently, if you catch omicron, that does not mean you're automatically protected against other variants.