Yes, if someone else owns the trademark for a name and you register that name as a domain, they are legally entitled to sue you for trademark infringement.