Yes, credit cards are accepted almost anywhere in the world and also on online shops and marketplaces, like Amazon or eBay. Your bank may block some foreign countries for safety reasons, but you may ask to unblock them if you have to travel there.