It depends on the severity of your illness. Mild to moderate exercise is generally safe, but if you have a fever or respiratory symptoms, it's best to rest and avoid physical activity until you feel better. Always listen to your body and consult with a doctor if you're unsure.