Protecting the Trademark by Buying Domain Names

There are many companies that buy every related domain name on the market as a measure to protect their Trademark. Is this method a good approach?