Whether a trademark can be used as a company name depends on the situation: in law, the right of company name is called the right of enterprise name, and the right of trademark is called trademark right. Generally speaking, these two rights are complementary.
If the trademark belongs to a well-known trademark, it may be considered as a free ride for others to register the same enterprise name again, which constitutes unfair competition.