The more things you try and do, participate in, and understand, the shallower your knowledge will be of any one of those things.
Of course there are other kinds of value than monetary.
And from experience I think it's true that at some point one should move from being a jack of all trades to become a master of some things. But as big as the world has become today, the road to this has become even longer. I think today it's not so unusual anymore to search some years or longer for your calling to master.
For example, if you have dabbled in C++, Java and Python you are better placed to learn a new language than if you have exclusively used one of them. Even if your knowledge of that goes way deeper.