Learning self defense definitely can help, but I'd like to point out that it should not be a method that you ultimately rely on. There will always be someone out there who is faster, stronger, and more determined than you are. This is true for everyone, and not just trans individuals. This also becomes much less effective when you are assaulted with a weapon.
One other option is getting a gun for self-defense. This works as long as you know how to use it and you realize what the possible consequences of firing it can lead to. Weapons can also be taken from you and used against you, so be careful with this route. Even if you have a gun, knowing other self defense methods are still useful.
Mace or stun guns are great options as well. They will help you defend yourself without the lethal consequences of a firearm. They are also allowed in more public and private locations. I recommend this for most people.
I personally use a combination of all of that, since it doesn't hurt to be too safe. I used to take martial arts lessons and I grew very comfortable with firearms in the military. I still carry a stun gun because I'd rather not have to use either of the other two options until they are absolutely necessary. So far I haven't had to defend myself, but I'd rather have it and not need it than need it and not have it.