Only true as of language. If you're doing websites you get to learn idiosyncrasies of browsers, DOM manipulation, asynchronous design, performance considerations, etc. That on top of how HTML and CSS is laid out and converted to DOM.
Which is as hard if not harder.
Of course it is easy to produce toy projects.