Hitting cervix during sex

My boyfriend hit my cervix pretty hard during some rough play today and we had to stop because I felt a painful cramp. I was wondering if there's anything I should I have to worry about since there was pain afterwords?