Using raw egg yolks in an affogato can add richness, but it’s important to ensure they are fresh and come from a trusted source to minimize any food safety risks. You can also look for pasteurized egg yolks to use in your recipe.