Pain during sex

Alice

I’ve had sex a handful of times and I had sex for the first time in a year today. The pain was worse than when I lost my virginity. I nearly cried. Could this be because it’s been so long or should I go talk to my doctor?