You use a credit card to send money online just like cash through a western union agent?

Is this safe?