Good analogy. There's a flip side to it though. You can be a great comedian on the level of individual jokes, or short bits, but be unable to write a story. And you can be a great jazz musician when it comes to soloing, but be unable to write a song. Stan Getz was a famous example. So yeah, learning jazz by imitation and immersion (as one learns a language) is very cool: learning these hundreds of songs will most certainly teach you how to solo. But it won't teach you how to make a song. Not nearly as reliably. It needs something else, I don't know what.