Search engine

Question about domains and search engine rankings

I am building a website for a realtor. It seems that if the domain contains the search words (e.g “homes” and “Denver” and “realtor” to denverrealtor.com or denverhomes.com) it would rank higher in search engines than those with those words only as metatags.

Is this true? What is the ideal way to get high on the list?