Does the word "operation" have the same definition in the next two sentences?

They will schedule the operation as soon as an operating room is available.

It is dangerous to look at the beam of a laser while it is in operation.
the same meaning