Self employed & maternity leave

Jasmoray
I'm wondering if anyone knows if you're able to recieved pay when on maternity leave while working at a job which declares you self employed ??? I was told by someone that you don't get paid maternity leave while being self employed