Lack of sleep can have a significant impact on cognitive function, including memory problems, lack of focus, and mood swings.