It depends whether or not the original relationship was a valid marriage.
If it was, then I suppose one could still arrange to go through the ceremony but the new relationship would not be a valid marriage. One would place oneself in an extremely problematic moral situation by doing this, and could very well be in a state of mortal sin.
It seems to me that there is ample opportunity, when going through a divorce, to commit serious sins that would rightly be discussed in confession. To not do so may again be problematic.
The only way one could make sure to not be in this situation would be to be truthful to the priest and see if one could get a declaration of nullity.