The comments of both the gentlemen are correct.
As for working at another company after the end of the contract, it all depends on the employer whether he gives you a No Objection Certificate (NOC) or not. This is as per the current laws which may undergo changes by the end of the year.