Yes! It’s legal to get one domicile from the existing state and residency in another state as per your convenience.