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

Drive the cows into the barn.

Their debts finally drove them to sell the business.
different meanings