Yes, dehydration is a common cause of headaches and can be solved by drinking water and electrolytes.