That's not even a magic trick. It's just a cookie stored in a pocket. It would be a magic trick if you first needed to show how the pocket is empty or has a single cookie. After hitting the pocket, the number of cookies would have increased. It would be an exceedingly standard sleight of hand trick, but still a legit one.