There's nothing wrong with learning from others, but you want to make sure you're actually
learning. That means going through the StackOverflow answer and making sure you understand all the API calls involved, what they do, how you just combined them, and where to go to find documentation on them.
If you do that you'll get really good at your technologies really fast. If you just copy & paste the answer you'll have solved exactly one problem, and then you'll have to Google again for your next problem.