MrMatt: for Oyster, yes absolutely they can.
For magstripe tickets, the barrier isn't clever. It opens if its coding shows that the ticket is valid, and shows an error otherwise; that's your lot. For magstripe tickets, LU gates also record data on number of entries, ticket types and ticket...