Star Trek was always meant to be space opera, but yes... ironically TOS, considered the campy black sheep of the franchise now, is the one series that at least attempted to be harder than others would, with input from actual engineers and science fiction writers of the time. The episode with the introduction of the Romulan cloaking device, for instance, hinged on the actual laws of thermodynamics (a perfect cloak is impossible - it must be radiating something somewhere.) In modern Trek, they'd just something something subspace some bullshit.
It helped that Gene Roddenberry was in the Navy and that Trek was basically The Cold War In Space which is actually more of an interesting dynamic to me than Starfleet being basically invincible and everything running on space magic.
Lewis Carroll, writing as Charles Dodgson, in a review of a new university belfry tower described it as best viewed from such distance that perspective dwindled it to a point.
It helped that Gene Roddenberry was in the Navy and that Trek was basically The Cold War In Space which is actually more of an interesting dynamic to me than Starfleet being basically invincible and everything running on space magic.