it possible but that kind of practice is illegal here. otherwise if your company gave you NOC for 6 months to work on other firm, it is legal.

Gud luck