Terriquez said. While whooping cough affects people of all ages, it can be particularly dangerous for infants and children.