Yes. Cheating slot machines is illegal and could get you in trouble. Las Vegas cheaters have faced jail and prosecution for many decades.