Based on the immigration law, B2 holder can not be allowed to study in a school, especially public school, but sometimes some schools may not care about this immigration law.