This statement is true. The text says: "It was not much fun to be a victim of his own trick. Sam felt very sorry for himself." This implies he ended up playing a trick on himself.