Will my baby be ok?

I was talking to my midwife earlier, and she said she thinks I'll probably give birth around 25 - 26 weeks. If I do give birth that early will my baby be ok?