Are you getting pregnant when you have vaginal discharge?

--------------------------------------------------------------------------------

can someone help me. i'm so depressed. my boyfriend was masturbate near on mine.he just push it slightly, but not at all. i take contraceptive pills immediately so that i will not be pregnant.after two days, i have vaginal discharge.i already went to a doctor and give me some medicines.should i stop now taking the contraceptive pills? my period this month is not yet coming.we have the"slightly intercourse" with my boyfriend last week.i'm so afraid. i'm not ready to be pregnant.this is my first time.hope someone can reply on my post.tnx a lot.