Politics aside…

My store told a transgender associate that they have to use the family restroom exclusively. Personal feelings and politics aside, are they in the right to do that?