You are able to buy travel money with a credit card, but exchanging currency is often treated like a cash withdrawal and so could end up being costly. It's usually better to buy currencies with a debit card.