If you already have a valid work visa (e.g. H-1B or L-1), yes. Otherwise, you'll need to file Form I-765 to get a work permit in order to work legally while waiting for your green card application to be approved.