A phlegmy cough signals a respiratory infection like a cold, flu, or pneumonia, so you should skip workouts until the cough clears. The same goes for fever, chest congestion, stomach bugs, and the flu.
Sports doctors often use the "neck check" to decide whether exercise is safe. If your symptoms sit above the neck, such as sniffles, a sore throat, or a mild headache, light exercise like walking or stretching may be fine. Symptoms below the neck, including fever, chest congestion, a hacking or wet cough, diarrhea, and upset stomach, call for rest instead.
For mild colds without fever, light workouts such as walks or gentle yoga work. Minor earaches and mild sore throats may also tolerate light, short exercise. A stuffy nose from allergies can handle brisk walks or gentle bike rides. But working out with a fever increases dehydration risk and worsens the fever itself while sapping muscle strength and coordination. A persistent or phlegmy cough is a deal-breaker because it suggests infection. Stomach bugs bring dehydration that physical activity only worsens, plus they spread easily to others. The flu hits the respiratory system hard and requires rest.
Once you are symptom-free, ease back gradually with less intense workouts. Regular exercise may shorten recovery time, particularly for acute respiratory infections. If you remain contagious, work out at home or outdoors to avoid spreading germs. Talk with a healthcare provider if you're unsure when to resume your routine.