Yes, that's known as skimming. Difficult to prevent. We often hand over our credit cards, and all it takes is for the clerk or waiter to swipe it through a tiny "skimmer" in his pocket (thus recording the card's info) before swiping the real transaction. It's a good idea to keep a close eye on your credit card transactions via the card's website.