If you ate a pizza that was slightly undercooked, it is unlikely that you would get sick from a single instance of consuming undercooked dough. While undercooked dough may not taste as pleasant as fully cooked dough, it is generally not a major health concern if it was only slightly undercooked.
The main concern with undercooked dough is the presence of raw flour and raw eggs (if the dough contains eggs). Raw flour may carry a risk of E. coli or other bacterial contamination, while raw eggs could potentially harbor Salmonella. However, the risk of illness from consuming a small amount of undercooked dough is relatively low, especially if you are a healthy individual with a strong immune system.
That said, it's essential to practice safe food handling and cooking practices. If you're unsure about the quality of the pizza or have any concerns about the ingredients used, it's best to err on the side of caution and avoid consuming undercooked food.
To prevent the risk of foodborne illness, it's crucial to follow proper food safety guidelines when preparing and cooking food. Make sure to cook dough and other foods to the recommended internal temperature to ensure safety. In the case of pizza, the toppings (e.g., cheese, meats, vegetables) should also be properly cooked to eliminate any potential pathogens.
If you have any specific health concerns or experience symptoms of foodborne illness after consuming the pizza, it's essential to seek medical advice promptly.