Yes, let's be clear on vocabulary. Illegal as in break the law, prosecuted by the D.A. in court, possible fine and/or prison, criminal record? No.
Illegal as in contrary to program rules, subject to sanctions by the airline such as ejection from program, confiscation of all miles, etc.? Usually.