No, In my country when you ask for maternity leave you DO NOT go to work... but you need to stay under a job contract the whole time in order to get the money from the maternity leave.
you need to prove that the employment relationship is still valid.
The employer will keep your job position, so...