There is no such law which states that company has to give you NOC,Its upto the company to give it or not.