Does sex hurt

So I was told the first time u have sex it hurts is that true cause I'm kinda worried that it will.