help?

I've been taking birth control pills but I take them at night before I go to bed. Me and my boyfriend had sex before I took my pill for tonight. Will I be ok from the pill I took last night?