It typically takes about 2-3 weeks for the body to build protection after vaccination. So a person could get sick if they get infected just before or right after (2 weeks) the shot because the vaccine has not had enough time to provide protection.  