Yes, and this is recommended. Whilst a trade mark registration of a domain name is separate to the registration of said domain name, it helps to protect your brand and business. Like with all trade marks, the domain name must be distinctive to be registered as a trade mark.
Can I register my domain as a trade mark?