Yes. If you don't empty your pockets, the scanners will set off an alarm and you'll need a patdown. Can you put items in your pockets before going through airport security? You can, but depending on the method of screening it will need to come out, so might as well put in the tray.