My dog acting weird again bc of my pregnancy

So I had posted a few months ago that my dog started to act really strange and start peeing in the house when he’s completely trained. I called his vet and everything because I thought he was sick and they told me that it was because of my pregnancy and that since my hormones were peeking and I was starting to show thought it was because of that since he’s super attached to only me. I’m 37 weeks and he just started to do it again today he Peed twice right in front of me after I just took him outside. Do you think it could mean labour is approaching? His vet told me that he might start to act funny before I go into labor because I guess they can sense that before you can? Has this happened to anyone?