Pain during sex

Victoria
I went last Sunday to the dr to get the pill for a yeast infection and my boyfriend and I tried to have sex and it burns and kinda feels raw. Has anyone else experienced that before or have any suggestions? Help please we just wanna go back to normal! :(