I answered no, but really it depends. If you are looking at code snippets to learn from, comparing different techniques and approaches to learn HOW to do things -- then it's fine and dandy. A good learning tool. This is particularly true with how rapidly languages and methodologies are changing right now which is why I say that any good programmer will double-check the most up to date documentation for the language and code samples offered just to make sure you're at the top of your game.
BUT, if your entire intent is to just blindly copypasta other people's code together, cross your fingers and hope it works? THEN you've tread into being a bad developer.
See "HTML/CSS frameworks" and the mouth-breathers who use them as an example of BAD development by just copying what others already wrote. Poorly...
This is also why when I write code examples for people on forums, I'll go the extra mile of explaining the how/what/why of the choices made even if it's something as simple as HTML+CSS... That way they can learn from it instead of just copying it.
Give a man a fish, he'll eat for a day. Teach a man to fish, and he'll bore you to death on the Outdoor Life Network.