Headaches can definitely be a sign of protracted withdrawal. If you’re weaning off caffeine, that could be the culprit.
It really should pass. Lots of water and hanging in there will go a long way to rectifying it over the longer haul. If your headache persists, definitely see your doctor.