No, you do not have to be a resident of a state to incorporate there, but there may be additional fees or requirements if you incorporate in a state where you do not have an established business presence.