egg custard is traditionally made with raw egg yolks, though not all custards are egg-based. the eggs aren't heated until cooked as they're used to thicken the sauce. therefore egg custard is only safe to eat in pregnancy if the eggs have been pasteurized first, along with other typical ingredients like cream and milk.