Does "use" mean the same thing in these two sentences?

There is no use for your invention.

He warned against the use of narcotic drugs.
the same meaning