The pill and a bad stomach

I have been taking the pill for just over a month now and I recent had a bad stomach for two days would it effect the pill and any tips on how to stop it because my stomach hurts really bad