Theoretically, but in the situation it's hard to percieve the threat level of your perpetrator and it can affect your education long term. Often bullies will be satisfied with only mild violence or insults, and trying but failing to defend yourself can often worsen matters and more permanent solutions are off the table thanks to criminal law.