pain while peein??

Alyssa
about once a month for about a week i get this really bad pain while peeing. i have unprotected sex at least twice a week but with my boyfriend(he pulls out) and i wanna know if the sex has anything to do with it. it also starts to smell weird too.