yes! eggs can be swapped for mayonnaise when baking everything from cake to bread. for each egg your recipe calls for, add three heaping teaspoons of mayonnaise. mayonnaise works as an egg substitute in baking because it contains egg along with oil.