I find it helps to recover from a cold, when you feel your energy levels starting to return. But I've hit the gym at the beginning of a cold before and it just made it worse, since I got more dehydrated and exposed myself to all sorts of germs from touching the equipment, etc, and overexerting myself.

Maybe I just overdid it, though.