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

Is the direction of the economy a function of government?

I couldn't follow the direction of his thoughts.
different meanings