If you have a very unique domain name, you might be listed for the domain terms on the first page without much work.
If your domain name is
www.greenapples.com, you will most likely not be on the first page despite your domain name.
While Google takes your domain name into heavy consideration, links to your website, content, and more also have lots of weight.
You need to focus on all those areas to get on the first page for a popular keyword. If you are getting a long and/or unique domain name however, you may be on the first page for your domain name alone just because there's not much competition.
I hope that helps.