Cervix question?

When typically does your cervix close once you're pregnant?