It's best to avoid desserts made with raw or undercooked eggs during pregnancy to minimize the risk of foodborne illness.