This might be a dumb question

Briar • Pregnant w. my first boy. Scheduled C-Section 1/4/23💙

But I want to breastfeed my baby after my scheduled c section. Can I still breastfeed on pain medication? I have a really small pain tolerance. I had an emergency c section but I could not breastfeed due to my daughter being sooo early. So I don’t know what the protocol is.🤷🏼‍♀️