Are sexual jokes a type of flirting?

Anonymous
Debate with friends today, some say yes and some say no/depends on the overall situation.

Does it matter if the people involved are gay/lesbian and straight (ie one is gay/lesbian and the other is straight) vs if everyone has the same sexual orientation?

How can you tell if the person telling the joke is trying to flirt (if the joke is a type of flirting)?
Updates
+1 y
In this situation the person telling the joke was a female, who is a lesbian, who told it to someone who she only recently knows who is also female.

Don't know if it flirting or not.
Are sexual jokes a type of flirting?
8 Opinion