Applying for promotion while on maternity leave

Has anyone else applied for a promotion while on maternity leave? There is a round of promotions being advertised and my director said I should go for it and he can help me with my application.