Do animals know

I have a small dog at home. He normal dont like to be in the bed with me. For the past week hes been under me and wont let no one get near me. Do he know something that i dont know? Has anyone else experience this with there pet and found out you was pregnant?