sooo question

Alright I've heard that sex can induce labor, well is it still safe to do so at almost 34 weeks? I had my daughter at 36 weeks.. but I think it was because I was so young and she was just ready to come. But now I'm older, but like is it still safe too?