Vaginismus

A few months ago, my boyfriend and I tried to have sex. It was hurting so bad, he couldn’t go in the hole. I looked on the internet and I may have vaginismus. Can anyone help me? Can I do something about it ?