Cervix pain

Should I go to the hospital if my cervix hurts really bad to Were I can not turn in my sleep or get up I’m 37 weeks pregnant HELP TIA