Is top used to mean the same thing in the next two sentences?

He removed the top of the carton.

The mower cuts off the tops of the grass.
different meanings