It can also be done until the 24th week of pregnancy when the test results show that the cervix has begun to open. However, this procedure is usually avoided after the 24th week of pregnancy because of the risk of triggering premature birth and rupture of the amniotic sac.