It's best to stay home, especially during the early, contagious days. Not only will rest help you recover faster, but your coworkers or classmates will also thank you for not sharing.