It's possibly just a coincidence. It's possible your diet is totally different now and you've stopped eting something you ate a lot of. Have you cut caffeine out of your diet drastically, that can cause dreadful headaches.
Hopefully it will go on it's own, but if it persists more than 2/3 days you should go to the Dr