It depends on where divorce proceedings have been started, and what the residency requirements of the (new) state are.
For example, if A & B are married and have dwelled in NC, if A goes to, let’s say Missouri, and meets the residence requirement there (90 days from what I’ve read), A can file for divorce in MO, even if the one year separation period has not elapsed for NC’s purposes. States have the power to decide the status of their residents.
However, depending on who moved where, who filed in which state, and other relevant circumstances, the court where the action was filed may have its powers limited. For example, the court may not be able to order alimony/separate mtc/PSS, or divide property outside the state. Consult an attorney for full details, “minimum contacts” can get quite murky.