Immunity is not a binary condition. It's not as if immunity, whether produced by vaccination or recovery from infection, lasts a certain period and then stops. While I would encourage everyone eligible to protect themselves by getting vaccinated, all the scientific evidence we have from similar viruses indicates that recovery from infection produces a significant level of cellular immunity lasting as long as the patient's immune system remains basically healthy. Concerns about waning immunity were mainly based on antibody levels, but of course those aren't very important.
https://peterattiamd.com/covid-part2/