Sore when you go for a wee


I was pregnant two years ago however it sadly ended in miscarriage. I remember having to go to the doctors as I was in pain when I went for a wee and also when I had sex. Like a burning sensation .. is this fairly common with early pregnancy? I’m having it again now and last time I had it was when I was pregnant