Both yes and no. Going by Enterprise with Captain Archer, originally it was purely for exploration - but there were too many altercations from other species, to the point where ships had to become more militarized.
Largely Space Fleet is exploratory and logistical vessels, with a few military ones - but a few intergalactic wars lead to an increase in military vessels.
As for the motivations around the creation and inspiration of Star Trek and Star Fleet; it’s the navy - because that’s what Gene Roddenberry served on.
Both yes and no. Going by Enterprise with Captain Archer, originally it was purely for exploration - but there were too many altercations from other species, to the point where ships had to become more militarized.
Largely Space Fleet is exploratory and logistical vessels, with a few military ones - but a few intergalactic wars lead to an increase in military vessels.
As for the motivations around the creation and inspiration of Star Trek and Star Fleet; it’s the navy - because that’s what Gene Roddenberry served on.
So, again; both yes - but no, but yes?