"Those who are vaccinated can still be infected by, and test positive for, SARS-CoV-2; they’re just way, way less likely to get sick as a result. The sticky element is whether not-sick-but-still-infected vaccinated people can spread the virus to others and get them sick. So far, the early data have been promising, showing that the vaccines stop at least some transmission, but the matter is not scientifically settled."
It’s complicated but “way, way less likely to get sick” and “stop at least some transmission” is worth it in a pandemic.