sex with a coworker

I'm a girl and I have 5 mangers at work and became close with one of my mangers. She's not directly my boss but technically one of my bosses and we had sex. Is that a bad thing or how would you look at that?