No, probably not, and you may even have to pay them up to a month’s salary if you choose to do so. Hence, it is best to always serve the notice period properly before deciding to leave.