If it's just a visitor, not someone who has a lawful permanent resident status in the United States, then individuals who don't consent to have their devices searched or who don't consent to answer all questions may be turned away.
On October 24th, 2017. See this statement in context.