Yes, it is possible for lack of sleep to cause a severe headache. Obstructive sleep apnea, a medical condition that causes decreased sleep quality, can cause headaches. In addition, lack of sleep can trigger headaches if you have a chronic headache syndrome such as migraines.