Pregnant

I havent gotten my period i am nine days late we had sex the 23 and the 30 of last month. I took my birth control during the week of the 23 of july. I was supposed to get my period on the week of the 30th and that week i only took sugar pills and i dont know if i should take a pregnancy test because of a prior date that we had sex it was unprotected but i still took my birth control. Now i have a stomach ache and diarrhea and i dont know if that is a sign what should i do ? Should i take a pregnancy test?