No, it is not illegal to volunteer time or work for free, if it is truly voluntary on the employee's part--the law doesn't make someone take a wage for work. It is illegal for the employer to require free work or refuse to pay an employee for work, and if the employer tries to, the employee may have a wage-and-hour  lawsuit or complaint to file with the department of labor for compensation.