Yes, you can get into a lot of trouble for disturbing school. First, teachers and school administrators can punish you by giving you detention or even suspending you. Second, it is illegal to disturb school.
S.C. Code Section 16-17-420 states that it is a misdemeanor to interfere or disturb in any way the students or teacher of any school or college, to loiter around on school grounds, or act in an obnoxious manner while at school. If a person violated this law, he or she would face a fine between $100 and $1,000 or between 30 and 90 days in jail.