Dogs and Pregnancy

My dog has been a perfect dog for three years, never had an accident, and this past week she has been HORRIBLE! She keeps going to the bathroom in the house no matter how many times I let her out. I let her out four times one day and another before work and she still pooped and peed in the house! I let them out for 20 minutes before bedtime took away food and water and she still had an accident! 
I think she knows the baby is close to being here and is acting out for attention. I'm 34 weeks and 6 days currently 😭😭😭👎🏼 Anyone else's dog did this before baby came??