Continuing to exercise while sick

Many of us made exercising part of our new year’s resolution but what do you do when you get sick? Can you continue to exercise?