Coffee can help against headaches, but it depends on the causes of the headache as caffeine works as a vasoconstrictor.