This isn't clear at all, e.g. "Reduced Risk of Reinfection with SARS-CoV-2 After COVID-19 Vaccination" at https://www.cdc.gov/mmwr/volumes/70/wr/mm7032e1.htm?s_cid=mm...:
> Among Kentucky residents infected with SARS-CoV-2 in 2020, vaccination status of those reinfected during May–June 2021 was compared with that of residents who were not reinfected. In this case-control study, being unvaccinated was associated with 2.34 times the odds of reinfection compared with being fully vaccinated.