Help what can it be

I had sex with my bf and as soon as he put it in it hurt kinda burned but it went away when he kept going than we switched position and he didn’t put his whole penis inside me only the tip and it started hurting