Both, depending on your definition.
This is part of the 'whole words vs phonics' debate, and there have been many discussions on this on this forum.
Start by reading this article:
http://www.brillbaby.com/teach-baby/reading-whole-language-phonics.php