The nation you're in, and your type of visa will determine if you may change employment. Changes in employment are permitted under some visas but not others. Examine the guidelines.