cervix check

Today my doctor checked my cervix and it hurt really bad. She said I might have some spotting as well afterwards. Has anyone had their cervix checked and did yours hurt?