Yes, exactly. They are simply following last year’s ruling by the Supreme Court, which determined that “sex” in the Equality Act referred to biological sex.
If you take an analogous case, that of the Women’s Institute, men are not allowed to join, regardless of whether they have had surgery or not. Even men who have removed their genitalia are still, biologically, men.