Technically, the answer to that is no. However, if you are pregnant and the person you are divorcing is not the father of the child, and the father of the child is willing to sign an affidavit stating that they will take financial care of the child and that they will pay support. They also must be willing to come to court and swear that they will take care of the child who is their child. In that situation, the divorce may be granted.
But for the most part, the divorce is not supposed to be granted if you are pregnant. You'll have to wait until you are no longer pregnant to move forward with your divorce.