Can a transsexual get an erection?

It depends on the type of transsexual person and where they are at in their transition.

Transsexual women can get them though they try not to since they hate that part of their anatomy and want it gone with surgery.

If you mean a transsexual man, it depends on how well their surgery was done, whether they have a penis or can get it erect.