Breastfeeding by pumping?

Hey ladies, we're expecting our first next summer and I want to breastfeed but I've heard they don't always take to it well. 
Can't you just pump milk and give it via bottle? Like even before they are born, have a couple bottles ready? And you can freeze it too, I know that from nannying.
Thanks for the advice!!