Yes, it's legal. It's illegal to misuse it, such as laundering money, hiding assets that aren't yours, or evading taxes.