Again, everyone gets headaches. This warning is only for any unusually long lasting pain. Any long lasting headache that lasts for three or more weeks should be cause to see your doctor.
A long lasting headache is a serious issue that needs to be looked at by a doctor whether it is cancer or not. An acute headache could be a symptom of leukemia.