The pill and bowel movements

Hey ladies so I’m on the pill and been on it for almost a year, this morning and yesterday morning though after I’ve taken my pill about 30 minutes after I have to poop, it’s not diarrhea it’s a regular bowel movement. Yesterday I took my pill at 10:50am and pooped around 11:15 and today I took it at 10:20 but pooped at 11:20 but I do use the bathroom before then since im up early but my body has to go around 11 so after I take my pill I have to go. Does this affect the pill?? I’m not currently sexually active but I do want my pills to be effective just in case. Thank you!