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

I ordered two dozen doughnuts.

There shouldn't be more than two dozen Christmas cards left to write.
the same meaning