Thing is, you do that too much and it’s not really Star Trek anymore — you do need both the “naval” element and the “visiting strange worlds” element (even if you’re largely stuck on a space station). (You can certainly do that in the Star Trek universe, it’s just that the feel would be that of a different subgenre.)
That said, it would have been fine to indicate that, sure, the Solar System is teeming with orbital colonies and such, even if our stories mostly leave all those behind the same way we leave Earth behind.