Is restraint used to mean the same thing in the next two sentences?

The unlawful restraint of trade.

Restraints imposed on imports.
different meanings