Sure, but what you do is provide a response that shows the amount of times it's been checked. If it's more than once, then you can be sure it's counterfeit.
On the other hand, being the first to check the code is NOT perfect proof that your item is legitimate. If the counterfeiter makes 100 of an item, the one of those will still pass verification. Unless you get notified of other attempts later, of course.