Did sex Induce you ?

I’m 38 weeks 5 days and midwife has told to try start labour myself by doing squats, eating spicy food, use birth ball, walking

But I heard SEX can help.

If you tried anything to induce labour what was it ? Also does having sex this far along hurt ? I’ve not really been into any of that.

I am walking everywhere now and doing squats everyday.