Do i need to buy formula?

B

I plan on breastfeeding when my baby is born in 2 months. I know that doesn't always go as planned. For you moms that planned on breastfeeing but couldn't, or didnt produce enough did you have a stock of formula at home for when you got home from the hospital as a just in case option?