Even being vaccinated doesn’t completely protect you from the cognitive effects of Covid. Everyone who’s had it has some level of permanent brain damage.
Yes, of course, nothing is 100%. But vaccines reduce both the severity and duration of illness, thereby reducing the risk and severity of brain damage.