Very true. I've learned the most by researching solutions to problems I run into while building projects. Building also pushes me to be creative in my solutions.
It goes without saying, that before you start building a project, you need some tutorials (basic knowledge) of how things work.