Yes, but your code is not unusable as is and to the uninitiated it will appear to do what is desired. So he may just unsuspectingly copy it and run into problems a lot later. If you don't want him to come back 10 minutes later with the next question, give him a proper example and explain it in at least some detail instead. :)