Before a woman becomes pregnant, her cervix is closed and firm. The cervix gradually becomes softer during pregnancy. It also shortens and opens in order to prepare for the birth of the baby.