Assess your symptoms. If your troubles are above the neck, moderate exercise is probably OK. For example, if you have a cold and no fever, a walk may be fine.
If you have flu-like symptoms and a fever, rest.
Do not work out hard for at least a couple of weeks if you're really sick. Your body needs to concentrate on healing.
Start slowly when you return to exercising. You will have lost some strength, but it will come back faster with patience. Don't beat yourself up and get sick again.
Sleep, sleep, sleep. Your body needs the rest time to repair the immune system. Also, if you are stepping up the exercise intensity quite a bit, you may even need more sleep. Try for at least 8 hours per night.
If you have a Flu, never go to the gym. Even though you think there is no damage being done. Massive damage is done to the heart. If it doesn't effect you there and then.... It will affect you later in life.I guess it depends on how sick is sick...
If you energy to go to gym then im sure it fine right?