Is the word "sleep" used in the same way in the following two sentences?

He felt better after a little sleep.

They had to put their family pet to sleep.
different meanings