With no explanation, label text_A→text_B with either "DON'T KNOW", "NO" or "YES".
text_A: Although the First Amendment does not explicitly mention freedom of association, the Supreme Court ruled, in "National Association for the Advancement of Colored People v. Alabama" (1958), that this freedom was protected by the Amendment and that privacy of membership was an essential part of this freedom. The U.S. Supreme Court decided in "Roberts v. United States Jaycees" (1984) that "implicit in the right to engage in activities protected by the First Amendment" is "a corresponding right to associate with others in pursuit of a wide variety of political, social, economic, educational, religious, and cultural ends". The court's decision in "Roberts v. United States Jaycees" held that groups could not exclude members for any reason, such as gender, that had no bearing on the group's own identity.
text_B: If one thinks back to the case of Rachel Dolezal, an NAACP chapter president who was later revealed to be white, if the organization had tried to abolish her membership explicitly because she did not fit with their avowed mission, would this have been legal under the Roberts decision?
YES.