Is it safe to use lube while pregnant?

This might be a stupid question but I really don’t know 🤷🏼‍♀️.

I’m 34 weeks and sex has been uncomfortable lately. Is it safe to use lube? Is it still safe to when you are dilated? I see my OB tomorrow and plan to ask then but just wondering..