Nope. Trans women who haven’t had surgery also have penises. There is more to gender than genitalia.
When I was young I also thought that gender was based off of genitalia. But a lot has changed around how we understand gender and what it is.
The world is changing my friend.
I respectfully recommend you educate yourself.
https://en.m.wikipedia.org/wiki/Trans_woman
https://www.encyclopedia.com/social-sciences/encyclopedias-almanacs-transcripts-and-maps/transgender