Very much yes: Knowledge is valuable itself. We're discovering the secrets of the universe.
The owners of capital have created an amazing, self-serving ideology in the US (and elsehwere): If something doesn't help them make money, it's worthless. People seem to think that's part of the US - in the Declaration of Independence and Constitution.
Even more amazing is that I hear scholars in non-profitable fields parrot those ideas. I think capitalism - and especially free markets - work well in many ways, but it's a means to an end, not a religion. Capitalism serves us, not vice-versa.
This is not a capitalism issue. During the communist revolution, scientists were persecuted if their work was too "intellectual" and didn't have immediate use.
https://en.wikipedia.org/wiki/Stinking_Old_Ninth
https://www.culturalrevolutionceramics.com/object-details/do...