Can you joke about homophobia if you’re gay? Yes- but as Dinoh said, some people can’t take a joke.
Although to be fair- I do have autism, but I don’t take it well when an autistic person puts themself down for the soul reason that they’re autistic.
It is quite a bit of a more sensitive topic for autists in general, just check with them first.
A bit unrelated-
Something I’ve learned: don’t use autism as an excuse for doing a lot of bad things or whenever you screw something up- because 1. Don’t do that with any medical condition, it’s a shitty thing to do and 2. Some people r e a l l y don’t take that well