Does word "dozen" have the same meaning in the following two sentences?

Can I have a dozen eggs, please?

I ordered two dozen doughnuts.
the same meaning