Some vaccinations can cause fever either in the first 24 to 48 hours after the vaccine is given (eg, with pertussis vaccination) or 1 to 2 weeks after the vaccine is given (eg, with measles vaccination).