Sos help me

So i’m still a virgin but i’m scared that when i do have sex it’s gonna hurt. Is there a way to prevent that or make it hurt less?