Under the Family and Medical Leave Act, you can part of your unpaid maternity leave while still pregnant if you are physically unable to work due to pregnancy or pregnancy-related conditions. Your job will be protected for a total of 12 weeks, including time before and after birth.