If the pain is after you urinate, with urgency to urinate, that's classic uti symptoms, and before it migrates up to your bladder or kidney, go get some antibiotics
cranberry juice helps prevent but not treat uti's...Keeps the bacteria from sticking to ureter wall
it does not have to be sexually transmitted, it's frankly often fecal bacterial pushed up the wrong exit hole
it could also be a vaginitis or other cause, but you need to get it checked