Yes, you can legally work while waiting for your marriage-based green card. Typically, when you apply for a marriage-based green card, you can also file for an Employment Authorization Document (EAD). This document allows you to work legally in the U.S. while your green card application is pending.