Buying any crypto from your credit card is same as buying it through any other payment method. both are equally secure. But always buy it from authentic source only, there are many scamming sites running in the crypto world. If coinbase is supported in your territory then it is the best way to purchase or alternatively you can use CEX.io as well.