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

Spend money.

I spent the time on worrying about the future.
different meanings