Does "degree" mean the same thing in these two sentences?

Murder in the second degree.

He earned his degree at Princeton summa cum laude.
different meanings