See the company doesnot have power to stop career growth but the company.employment is.guided by the employment bond and agreement if your agreement suggest so that you cannot leave before 5 years and if you do , you have to pay the bond amount. Further you can seek NOC from the department under the rules of employment.