Is there any way to prepare myself so sex doesn't hurt so bad?

I've heard from multiple girls my age that the first time hurts a lot and I'm kinda freaked out for that. So is there anyway I could prepare myself so it will hurt less? Thank you