Yes. Recent (this administration) policies allow for demanding passwords etc. at the border. There was an incident where a NASA engineer lost control of sensitive data as a result https://www.theatlantic.com/technology/archive/2017/02/a-nas...
It's not paranoia. Welcome to 2017.
Edit: It's not like they're scanning every cell phone that enters the country... but they reserve the right to.