Perhaps. Sexual harassment law was really designed to protect female workers from the attention of males.
In my country the Federal government website gives examples of what is sexual harassment. One such example is "unwanted invitations to go out on dates". So if a man asks a female co-worker out and she doesn't want to go out with him. it was an "unwanted invitation" and he has sexually harassed. He can only safely ask her out if he knows she will say yes before he asks her. The invitation does NOT have to be repeated, a single request is enough.
(The Australian Federal government website is somewhat deceptive on this point. In the "Information for Employees" it says "unwanted repeated invitations to go out on dates, but the word "repeated" isn't in the "Information for Employers". So a woman makes a complaint, the man says to his boss "I only asked her once!" and the boss replies "My definition doesn't say 'repeated invitations', so you've just admitted guilt!")
In theory a man can complain about sexual harassment from a woman, but no-one would really take it seriously. If he persisted with his complaint against a woman then somewhere along the line people are going to be assuming that the woman is complaining about him, and it will take endless explanations for the people who judge such matters to accept that a man is complaining about a woman. It doesn't matter whether it's a cis-gender woman or a trans-woman. In the eyes of the people who judge such matters the straight cis-gender male is always the villain.