Canadian maternity leave question

So I quit my job due to extreme stress, and found out I was pregnant 2 months later. (Got pregnant 2 weeks after quitting)

Instead of finding another job my husband decided it would be good for me to go back to school.

So even though I worked for 2.5 years at this office, because I quit, I don’t get maternity leave? Right?

Sorry this might seem stupid to ask but it’s been quite confusing to read about.

Thanks