Domain registration and Hosting are 2 different components. You can certainly register domain names without buying/having any hosting plans.