random question because I cant sleep

do dogs know when somebody is pregnant? have you ever had that happen to you or someone you know? do they get protective of their owner? always want to be around their owners?