Can dogs sense labor?

Random question I know. But my dog has seriously not left my side for the last two days, she’s constantly just sitting right next to me and staring at me, I mean constant staring and it’s a little creepy lol I keep asking her what she needs and as soon as I let her out she’s back at the door whining and scratching which she never does, this dog could happily play outside for hours and be fine. She just immediately runs back to my side and sits there.