38 weeks and sex

Secon baby, 38 weeks trying to get things moving been having contractions but nothing major, had sex how long to do you leave the goods in before it does anything if anything at all??? Does sex even help??