Possible pregnancy

Hey guys so I’m wondering If it will possible to get pregnant when you had sex day 16 of your cycle. But took a morning after pill not almost 24 hours later? Thank you!