No, unless they have some legal reason to do so.
As long as you have resigned in accordance with the time frame noted in your contract, they should oblige and permit you to leave. If you have trouble, you can always take the matter up with the labour office.