Can Headaches a sign of pregnancy?

Ali • Ttc for 2 yrs, Irregular periods
This past week I have had what feels like a constant headache,around my temples.it was so bad one day that the sunlight hurt my eyes and I ended up in bed for hours in the dark.is this a possible sign of pregnancy?i have irregular periods so not sure when I ovulated.i took a test today and was neg.also I very seldom got headaches previous to this week