The domain name and the web hosting service are two different things and can each function in different ways,While they both work together.
However, without a domain name there would be no way to access or lead to the information stored in your hosting account. Therefore, the hosting couldn't work.
Domain names, however, can be purchased without web hosting. These domains are consider as 'Parked domain' until such time as their name servers are delegated (or pointed) to a webhost. Advanced DNS records of the domain can also be used to point to other servers, although the IP address must be known. It may also be redirected to another domain name. For example www.youdomain.com and www.youdomain.co.uk are both individual domains but one may be redirected to the other. In this case, web hosting only needs to be established on the target domain.
In order to access your webhosting
(Website) using domain name
, you need to register your domain name first.