Anyone can say anything they want at any time. What people forget is that words may come with consequences.
Schools must have rules for a number of reasons, mainly because they are full of kids. Dress codes for schools apply across all students and must not discriminate. So, if a school has a rule that any words can’t be on shirts, no child can have words on their shirt.