pain after sex??!

Hey ladies, was wanting to know if this has ever happened to you. 
After sex with my SO I go to the bathroom cause I don't want to get a UTI, but when I do my business there is an intense burning sensation. Sometimes it's more painful than others. Would this just be from friction and swelling or other reasons?