Yes, it is mandatory to inform the employer well in advance about the expected date of delivery and the intended duration of leave.