Induce labor

I’m not trying to induce labor as of now but I was curious.

Do those techniques work at any point in pregnancy or just the end of the third trimester when your body is ready?

Im 31 weeks and might consider it if I pass my due date (everyone in my family has)