Messed up

Okay so i am suppose to be in an ovulating period ( the green) and me and my guy had sex and the condom broke inside and then the next morning we got the morning after pill? Am i gonna be okay ?? Or is it not going to work?