Sex after c section

Although I didn’t delver vaginally, I was wondering if having sex after a c section hurts. We are almost at the 6 week mark postpartum. I was wondering what people’s experiences have been with sex after a section. Was it painful?