No, it's not illegal for a U.S. citizen to have a foreign bank account. However, it is essential to ensure all IRS and compliance requirements are met, including the disclosure of such accounts.