It is legal to lay off a worker who is on maternity leave if their dismissal is not related to the Family and Medical Leave Act (FMLA). If you're laid off while taking leave you're still entitled to the same benefits as your fellow employees.