Pain during sex

So my bf and I were having sex and I started bleeding. I don’t know the cause it wasn’t our first time. Pls help so I can figure out what it is or if I should contact my doctor to make sure it’s not serious