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

She didn't leave until midnight.

Leave the flowers that you see in the park behind.
different meanings