All barriers are deterrents. Whatever crime you committed, the authorities are going to be equally or less likely to arrest you if doing so is more expensive and more difficult. They'll spend billions or trillions to get Osama Bin Laden but for a lottery scammer they might give up.