Follow this simple rule:
If you have a fever or symptoms below the neck such as a cough then take a break from exercise. If you have symptoms above the neck and you are congested with just a head cold go ahead and have a light workout if you feel up to it. Do not exercise if you have a bad cough or bronchitis as it can easily transgress into pnuemonia or more serious conditions.