It is okay for the government to do that, yes, because they're spending it on stuff that everyone needs in order to have a functional society that allows you to consider making money in the first place.
Some govt spending might meet that description, but do you really think that it all does? If not, what fraction does?
And, even for the money that is spent that way, how do you get from "everyone needs" to "should be funded by govt". For example, everyone needs shoes. Should govt provide shoes?
And, even for the money that is spent that way, how do you get from "everyone needs" to "should be funded by govt". For example, everyone needs shoes. Should govt provide shoes?