Constitutionally speaking, no, as this would be a violation of the 1st Amendment
On the other hand, yes, as this could cause harm since they are an important ally--this also includes wanting to boycott for racism or hate for the nation and it's people.