Does it hurt

I'm a virgin and I wanted to know if when you have sex hurts, people say that it does and people say that it doesn't what do you think and if it does what helps to make it not hurt?