Older child is regressing.

Madison
I have a 3 year old daughter that has been potty trained for quite some time. The passed 1.5 weeks or so she has been having multiple accidents a day. &today she has already had two accidents and pooped on the floor. Could this be her craving mom and dad's attention because she knows the new baby is coming? Or possibly something else? Please help, I'm desperate!