Yes it is legal, but you will need to watch for reporting requirements in your country as part of the money laundering laws. Some countries require you to report foreign bank accounts that you control as part of their anti-money laundering statutes. There may also be an matter of interest income.