A handful of domains will have restrictions on them, which means you can only purchase them if you meet certain criteria or have authorization (some examples are .gov, .edu. and .mil). But most extensions are available to everyone. In fact, most country code Top Level Domains (ccTLDs) are available for anyone to purchase, even if you don’t reside in the country in question.
The practice of using a simple memorable abstraction of a host's numerical address on a computer network dates back to the ARPANET era, before the advent of today's commercial Internet. In the early network, each computer on the network retrieved the hosts file (host.txt) from a computer at SRI (now SRI International),[4][5] which mapped computer host names to numerical addresses. The rapid growth of the network made it impossible to maintain a centrally organized hostname registry and in 1983 the Domain Name System was introduced on the ARPANET and published by the Internet Engineering Task Force as RFC 882 and RFC 883.
Domain names used in works of fiction have often been registered in the DNS, either by their creators or by cybersquatters attempting to profit from it. This phenomenon prompted NBC to purchase the domain name Hornymanatee.com after talk-show host Conan O'Brien spoke the name while ad-libbing on his show. O'Brien subsequently created a website based on the concept and used it as a running gag on the show.[34]
Domains are nonmaterial goods. When sold, the only transaction taking place is transfer of domain rights from one user to another. Barring any form of copyright or trademark violation, virtually any domain name can be bought or sold. Generic domain names, such as car.com or computer.com, are not legally protected and can therefore theoretically be reserved by anyone.

Absolutely. Owning 'yourname.com' (as well as related domains such as yourname.tech or yourname.me) is a great way to brand yourself and retain control over your name's online presence. With a personal domain name, you can set up a portfolio, blog, or hobby site that’s associated with your own personal life. You can also set up a custom email address like john@johnsmith.com allowing your visitors an easy and memorable way to reach you. So even if you have no immediate use for yourname.com, it's wise to register a personal domain to ensure that you (and not some stranger) control your name online.