Can staying hydrated help alleviate a headache naturally?

Can staying hydrated help alleviate a headache naturally?