It typically takes a few weeks for the body to build immunity (protection against the virus that causes COVID-19) after vaccination. That means it's possible a person could be infected with the virus that causes COVID-19 just before or just after vaccination and still get sick.