Lube during pregnancy

Is it safe to use lube? I'm am currently 23 weeks. Sex is just becoming painful and almost unbearable. Does this normally happen?