Sure, but even then that was basically "woman on woman" which has traditionally been viewed on TV as the "safe gay" on account of fetishizing lesbians. On the flip side of that coin, we have Andrew Robinson, who initially interpreted Garak as gay and played him that way, until Studio Suits yelled at him to "tone it down" and eventually forced the writers to provide female love interests for him.
And DS9 didn't exactly do justice on other LGBTQ+ matters either. There's Profit and Lace, which let's be honest is extremely insulting in its depiction of gender identity.