Yes, eggs need to be thoroughly cooked to kill Salmonella and other microorganisms that may cause food poisoning. If you want to prepare something with uncooked eggs, such as mayonnaise or tiramisu, use pasteurized eggs.