yeah you can, pretty much every measure to mitigate poverty costs money, housing first, dietary education, food stamps, etc
The reality is that the amount of money spent on science is relatively miniscule, and no country can hope to advance without investing anything in science.