Normally you may resign at any point. However, your contract should state the duration of the notice period. As for leave - you are entitled to leave by operation of law, but the taking thereof is to be negotiated between employee and employer. Should your employer have an emergency that requires your attention, it would not be unreasonable for them to request that you return to work.