I haven't noticed any difference in my recall and lucidity if I have sex right before bed. I just try not to fall directly to sleep. I get up, have a glass of water, go back to bed and do my normal meditation/intentions before sleep and WBTB throughout the night. It does help with not having distracting dream sex in the middle of the lucid when I'm trying to accomplish a goal.