should i see my doctor??

i had protected sex (wasn’t my first time) but it was painful and it burned right after ? Could i have something ? Or is it the condom???