The raw egg yolks in carbonara actually get cooked by the residual heat of the hot pasta and pasta water. Essentially, the egg is not raw by the time you eat it, and is generally considered safe to eat!