Hello,
Yes, to rank a site up, first you need to analyze every thing, the theme of your website, your targeting keywords etc.,
Build each web page by setting a theme and optimize it for appropriate keywords.
Learn how to do ORGANIC optimization and study the updates then and there because SE's may change its algorithm frequently!