No, if you resign from your contract you have no rights when it comes to an NOC. Neither does anyone else. An NOC is at the complete discretion of the employer. Sorry.
mandi