To run a website, you need both a registered domain and a hosting plan, but these are two different services.
Let us look at what each of them is and what the key differences are:
Domain
Hosting
The key difference is that when you register a domain, you only obtain the name, whereas when you purchase hosting, you obtain the server itself, to which you then connect the registered name (domain).