Roddenberry made it very clear that in the Star Trek universe Starfleet was not the military, and that the Federation did not use currency in its internal economics.
Which doesn't really mean a whole lot, because writers were (and are) free to ignore this whenever it suited them.