@chapisag Don't go on maternity leave and then quit when/just before you go back to work. Where I used to work you would owe back what the company paid for your benefits for the time you were out on maternity leave.
Check you maternity leave benefits, which may or may not state those details...