You should not receive the shingles vaccine if you are pregnant, if you have an active shingles infection, or if you previously had an allergic reaction to any component of the vaccine. If you're eligible for the vaccine and receive the vaccination, there are no restrictions afterward and you can leave the doctor's office or pharmacy as soon as the shot is complete.