Being exposed to a song does not really counts as learning, but another thing is an analysis of chords, lyrics, post-procession effects, rhythm. Intention to repeat that in their own creative project is a judge.
If you really WANT to learn something you cannot rely on such accidents happening. Accidents are not a method.