It's absolutely possible. It depends how the surgery was done and also if nipples were moved. Essentially you don't know until you try.
So. Responsive feeding, feed baby when they want it, so showing feed cues (which for a newborn is basically whenever they stir, squawk, are awake....) and when they need it so at least 3 hourly. If baby is asleep and not waking for feeds then wake them.
Lots of skin to skin to promote feeding and milk production.
Watch your baby. Nappy output is the best sign of getting milk. So day 1 and 2 should be having a couple of good meconium poos, day 3 looking at 3 or so changing poos, greenish going to yellow. Then after that 3 to 5 yellow poos.
Around day 3 your breasts should be filling and you'll be able to hear baby swallowing milk when they feed.
If any of that isn't happening then you need to consider if your supply is enough or not. That doesn't mean reach for a bottle though. At first I'd suggest expressing after feeds and giving the expressed milk and seeing if that makes a difference.
At day 5 baby will go on the scales too so that will give more information.
If after this, baby's weight gain isn't going well and expressing isn't helping then it may be that the surgery has affected your milk ducts and baby simply can't get what they need from you and you may need to supplement. But you can still breastfeed alongside formula, it isn't always one or the other.
Some women after surgery find they simply can't produce enough even if doing everything "right" but others feed no problem at all.