Fighting in ice hockey

Fighting in ice hockey is an established tradition of the sport in North America, with a long history that involves many levels of amateur and professional play and includes some notable individual fights. Fighting is usually performed by enforcers, or ``goons''--players whose role is to fight and intimidate--on a given team, and is governed by a complex system of unwritten rules that players, coaches, officials, and the media refer to as ``the code''. Some fights are spontaneous, while others are premeditated by the participants. While officials tolerate fighting during hockey games, they impose a variety of penalties on players who engage in fights.

Question: is it legal to fight in ice hockey
Answer: yes