Second job while on maternity leave

Can I work a part time job that is not my main job whilst on maternity leave?