Had sex and now it hurts/burns when I pee

Last night I had unprotected sex and today it hurts/burns to pee. I feel like I constantly have to pee too. It even hurts when I’m just sitting there or laying down. Why would this happen!?