sex hurts?

sex really hurts me. does anyone know what it could be? i haven't done it much, will it just get better with time? or is something wrong? it's starting to mess with my life :/