Are flu shots at the pharmacy as safe as at the doctor’s office?

Are flu shots at the pharmacy as safe as at the doctor’s office?