Yes you can get a uti from holding your pee because it keeps bacteria in your bladder for longer. However, holding your pee can also irritate your bladder which can cause similar symptoms. Drink water and make an appointment just in case, you can also get urine test strips online to check in the meantime. Hope you feel better soon!