Lack of sleep can affect your immune system and reduce your ability to fight infections.