During pregnancy, the cervix is closed at the lower end. It thins and opens before childbirth. When it opens too early in a pregnancy, it is called incompetent cervix (also known as cervical insufficiency). Complications linked to incompetent cervix can include premature birth and miscarriage.
https://my.clevelandclinic.org/health/diseases/17912-incompetent-cervix#:~:text=During%20pregnancy%2C%20the%20cervix%20is,include%20premature%20birth%20and%20miscarriage.