Among children and adults hospitalized with community-acquired pneumonia, those with laboratory-confirmed influenza-associated pneumonia, compared with those with pneumonia not associated with influenza, had lower odds of having received influenza vaccination.