Maternity Leave question ?

Maternity leave question: how does it work ?

I am due 12/21/22 but can potentially deliver sooner since I do have am high risk and have a cerclage stitch I am in Arizona and I know we get 12 weeks of maternity leave but can I take leave early since it’s towards the end of the year and then get another 12 weeks of maternity leave for next year?