?????

I have been taking birth control for almost 2 months but the past 3 days I have had a massive headaches that turned into migraines. I want to stop birth control but I just had unprotected on Friday so I just want to be safer for longer. when can I stop using BC and know I'm safe ???