Your lender will assess you on your serviceability to ensure that repayments can be managed if you are looking to take maternity leave. Additionally, your expenses will likely change so this is taken into account during the assessment.