Ovulation timing question

Ashley

So according to my app I was supposed to ovulate three days ago. The day before the app said ovulation I had awful cramping and pains I believe due to an egg being released on my right side... if I released the egg when I had those pains but had sex the next night after how likely is it to get pregnant? If the egg was already released 24hrs prior when I had the pains does it stop being viable?

Thanks!