Yes, aioli does contain raw egg. A classic aioli is made with garlic, olive oil, and one or two whole eggs that have not been cooked in any way. The combination of these ingredients creates an emulsion which gives the sauce its creamy texture and rich flavor. Raw eggs do pose some risk for foodborne illness such as salmonella if they are not handled properly; make sure to use very fresh eggs from a reliable source when making your own homemade aioli.