Headaches?

So I’ve been taking birth control (the pill) for about 9 months now and I’ve been dealing with headaches ... but only for the past two months ... my doctor claims that it could be the pill but it doesn’t matter if I’m taking an inactive pill or not [side note: when I was younger I had headaches also] does anyone know if the pill actually might be the leading cause of these headaches?