If the security conference was in a place sanctioned under the US International Emergency Economic Powers Act, then yes.
He applied for a travel exemption, and was denied. He went anyway. He was charged with that, not the speech. That's how its enforced, for this specific reason. Regulate the intermediary to control the desired behavior. Don't regulate the individual with first amendment rights.