Headache and Nausea after taking the Pill

I’ve been taking the pill for about 2 weeks now and everytime I take it like an hour or two later I get really bad headaches and nausea where I can only really sleep because I get frustrated by the pain . Does this happen to anyone ? Like is this just a side effect ?