Do I need a pass for maternity leave

So I’m 37 weeks pregnant, FTM, and next Friday will be the end of our pay period and I’ll be 38 weeks. I planned on working all the way up but I talked to my husband and I really want to go on leave after next Friday. I’ll finish the pay period and it will give my job a notice to plan accordingly. My original Maternity leave date was January 7th but I’m exhausted and I’m not doing well at work. I’ve been making more mistakes, falling asleep at my desk, and showing up late from sleeping in late because of how exhausted I am. I just want to rest. I feel like I’m not functioning well these days.

I have an OBGYN appointment Wednesday, so do I need to ask my OB for a pass to go 2 weeks early at my drs office? Or do I just give my boss a notice? Thanks moms! 🫶🏼