Cake batter with raw egg may have harmful bacteria such salmonella; resist the urge to taste cake batter or cookie dough. Even a homemade cake that was not cooked thoroughly could contain bacteria such as toxoplasma and listeria that are able to cross your placenta and make your baby sick, too.