An offshore/ foreign company set up is perfectly legal. You can own companies in as many national states as you wish. The only requirement is that you should comply with your home country’s legislation. Some countries have CFC (Controlled Foreign Corporation) regulations that oblige citizens to declare the ownership of a foreign company to the home country’s authorities.