Leaving the state while filing seperation

I want to know if there are any laws or restrictions about a spouse moving out of the home and moving to another state and then filing for a separation. I plan on moving from NC to CA if there is not any restrictions.

You may move to any state you choose, however the new state will not have jurisdiction over your spouse, and the action for property division, spousal support (if applicable) would need to proceed in NC.