Sperm/5days

So sperm stay in you for up to 5 days waiting in an egg?? I didn't know this. So it help to have sex before you ovlate also...