pets acting out

I am due in 2 weeks and for a while now my 6.5 year old cat has been acting out. She has gone to the bathroom on the rug by the front door 5 times in the past month and peed on a brand new rug for the nursery. Has anyone else experienced this? I feel like she can sense what is happening and is acting out. She hasn't had the problem before.