Vaccines of any kind aren’t 100% effective or last forever (hence boosters for many). But if your vaccination is up to date and you catch whatever bug it is anyway, the vaccine will almost always still reduce the severity of the illness *and* mitigate your infectiousness towards others...