Are headaches an early sign of pregnancy?

I have had a headache for over a week now. It goes away when I take ibuprofen but comes right back. I have heard it can be an early sign of pregnancy because of the change in hormones. Did you have headaches as an early sign?