Having a COVID-19 infection while pregnant increases the chance of severe illness and pregnancy complications. It is therefore especially important to be fully vaccinated against this disease when pregnant.
Miscarriage can occur in any pregnancy. Studies have found that getting a COVID-19 mRNA vaccine during pregnancy does not increase the chance of miscarriage.
References: