Is the US president using tariffs as a political weapon?

Donald Trump threatens levies on Mexican goods if Mexico doesn’t stop flow of undocumented migrants.