Whooping cough (pertussis) is a highly contagious infection. A person is most likely to transmit the bacteria that cause this illness when he or she is experiencing symptoms, especially during the first three weeks of symptoms.