Intentionally? No, of course not. Trek's history with actual neurodivergence before the streaming era is... spotty at best. And that's not entirely a fault of Trek itself, because real understanding of what it is to have neurodivergences wasn't really even a topic of discussion for the layman until the 2010s, limiting what they could really even do with the idea at the time, even acknowledging the way that mental health in general was handled by Trek's writers in the 90s.
However, one of the strengths of Star Trek has always been in its applicability. The fact that Rom resonates with neurodivergence now speaks to the ability of the writing and the strength of the character himself, that the experiences of neurodivergence connect with this character who was very much not intentionally made to represent it yet still do.