After how long of tablet intake that I wil be protected from pregnancy?

i started takin yasmin 2 weeks ago and i some tyms take the pill after 24 hrs also.. means, if i take 10 pm today next day i happen to take at 11pm bt last 2 days i have been taken it correctly within the 24 hrs n i had unprotected sex last night ..am i at risk from geting pregnant