It is not that easy as like changing your clothes. You need to get a release or a NOC (No Objection Certificate) from your employer before you are allowed to work to another company. If not, they will cancel your Visa and they will send you back to your home country and wait for a 2-year ban.

That's all.