Covid vaccine during pregnancy

I was offered Moderna vaccine at work. I’m 8 weeks and nervous. My OBGYN just told me it’s my choice and that it doesn’t cause birth defects but how do they know? I’m nervous but my work is really pushing for ALL staff to get it.