Of course.
We had this at my school. I went to an all boys school and there was a trans girl which is obviously very hard when you go to a single sex school and you don't identify as male. I think she was allowed to use the female staff toilets and I know she was already having hormone injections at the end of her time at school.
Some people were so weird about it though, like she isn't using the boys toilets which you are using so how does this affect you