No. You might be able to build a binary .hex file outside of the IDE, and have him/her use avrdude to download the binary to the Arduino, but even there a determined person will just run a disassembler over the .hex file and could figure out what is being done.
Besides, closed source is not really in the spirit of the Arduino project.