How soon until sex?

I started taking my pill this morning and had sex this evening, was this a bad idea? I'm on the microgynon pill, and so is a friend of mine who says she has taken this risk in the past and it was absolutely fine for her. Just wondering what you guys think :)