That's true only in a very strained and tautological sense of "inspire".
Science has quantifiable results. There are facts that we know and theories we've understood (and discarded!) because of telescopes and probes that we would not know had they not flown. Whether that knowledge has value or not is, I guess, subjective. But it's not only "inspiration" except insofar as you declare that the only reason for wanting to know about martian geology or the early universe or whatever is "because it inspires us". Which is to say: you're making a semantic argument, not a profound one.