It's mainly because of urinary infection.not because of pregnancy.pregnacy occurs if have sex between 11th day of your menses to 18th day if menses if u have regular menses .
Next Steps
do urine routine test .u may need antibiotics
Health Tips
avoid frequent use of I pill.use other options of contraception like condom.i pill may disturb your menstrual cycle