You're contagious for the first few days of a cold, so it's best to stay home afterward. You need to be careful when coughing and sneezing around others.
In addition, you will recover faster if you are rested.