No, they owned it, as long as the Federal government sold or granted it to them.
In many cases throughout the territories, however, the government just never sold it or granted it to anyone, even the newly formed states, and therefore retains ownership to this day.