Right. If you're vaccinated for Covid, your body still recognizes and fights the infection, it's just a few hours/days too late to prevent the infection completely.
That's why vaccinated people rarely have to be hospitalized, or die, due to Covid. Their body starts fighting the infection in earnest several days before an unvaccinated person's body would have.