A good-fitting nursing bra is essential when you're latching and a good pumping bra is essential when you're pumping. I recommend getting at least 3 pumping/nursing bras if you are doing both.
You can also repurpose an old bra or tightly fitted shirt by cutting slits by your nipples to hold the flanges.