Drainage after birth control pill

I took my birth control pill and then 2 minutes later I had drainage because of my cold so I spit up some mucus. Did my pill come up or will it be affected??