It all depends on how you got the EAD. If it is employment-based, I 485-pending, you need to keep the job to have a valid i 485 application. If you are just a dependent on other's application, you can use the EAD to work anywhere.