No, because that's doing work for which you would normally expect to be compensated and is, therefore, not true volunteering work, which is the only activity permitted in H-4 status.  You can get the employer to petition you for a H-1B visa if they so choose and then you can work for them lawfully.