Drugs that weaken the immune system can negatively impact the efficacy of the shingles vaccine. The CDC recommends discussing the vaccine with a healthcare professional if someone takes immunocompromising medications.