Is the word "emulsion" used in the same way in the following two sentences?

An oil-in-water emulsion.

Mayonnaise is an emulsion where egg is used to keep oil and water mixed.
the same meaning