So I need some answers !!!!!!! PLEASE READ

So I take birth control every day. That’s the only pill I take every day. I heard antibiotics or prescriptions counteract the birth control and will not protect you from having kids. I don’t take any antibiotics or prescriptions but last night I was having trouble sleeping so I took my friends prescribed sleeping pill. What if I had sex this week. Would my birth control still protect me from having kids ?and if not how long does it take for my birth control to be effective again ?? What should I do?