Eim Ein Kemech Ein Torah.
There are numerous points to the contrary in Pirkei Avot:
אם אין תורה, אין קמח
לא תעשם עטרה להתגדל בהם, ולא קורדום לחפור בהם
ודישתמש בתגא חלף
כל המבטל את התורה מעושר, סופו לבטלה מעוני
While I know we're talking about medicine and not Torah, the values are universal and they express how money is only a means and should be viewed in that context when prioritizing.