Yes. With my having three daughters, you are putting the Speaker in a very bad position. In fact, I think the unfortunate answer is that if a member is of one gender she does not need to wear a tie, but the other gender does.
Somebody can challenge that or take an action for a declaratory judgment in one of the courts.
(The House divided on the motion, which was negatived on the following division:)