Well, of course, you can. Wearing nail polish is totally fine in school. But, it's a good idea to be aware of the policy at your specific school so that you don't accidentally get sent home on the first day of class.