40 weeks pregnant

Today I had my last on appointment and my dr did a painful cervix check. It felt like he digged his finger so hard to check my cervix . I didn’t ask, but is that a membrane sweep?