Maybe. Depending on the reason for headache, it may. Fluids usually help but tea can be dehydrating.
Caffeine. The caffeine in tea can help some people when a headache flares, just like coffee. But it varies from person to person and the caffeine sometimes can magnify the symptoms. Should see a doctor to also get to the source of your headaches, if possible.