I suppose. Oddly, nobody (almost nobody?) seems to object to the things that Starfleet is depicted doing that fall along military responsibilities. The objection has always been to the label.Honestly, this whole issue of whether Starfleet is a military or not is starting to feel like getting into an argument over saying po-tay-to or po-tah-to.
And I'm actually shocked it took me over twenty years to realize that.
For myself it's two things. There is the feeling that this is a ridiculous lie that I'm somehow expected to believe. At its most benign it's double talk. (Or cluelesness?) Gene Roddenberry: "Starfleet is not a military." But... They're all naval and armed and they have stripes and everything. GR: "This is tradition." But... They fight the wars! GR: "Well, that's not their primary purpose." Are you KIDDING me? (I'm also arguing that it IS their primary purpose in that in supersedes all others. Studying gaseous anomalies has never taken precedent over defending Vulcan.)
The other thing (and I've seen some of this here) is that there is a strong desire for it not to be a military because there is an opinion that militaries are inherently bad. No good, utopian society like Star Trek would ever have a military. Which I also disagree with. Strongly, actually.
Even in TNG when GR was as in charge as he ever would be on TNG our crew would still patrol borders. They would meet up against rogue Klingons. They would perform war games. And as long as you added Picard's little caveat that they weren't really a military but, y'know, the Borg, then it passed muster.