Will exclusively formula fed babies be okay ?

I'm 8 days postpartum, after an emergency C section. I'm unable to breastfeed as its affecting my mental stability.

I want to know that am not making a huge mistake exclusively formula feeding my baby. I just need assurance its gonna be okay. That am not a monster for not giving my baby breast milk.

Post partum depression is so hard and am having a mental breakdown almost everyday.