Burns while peeing

Sometimes after sex it burns while I pee it doesn’t happen all the time I’m not sure if I should be concerned or not.