I guess so.
In any case you have to declare revenue and ownership, or commit tax fraud.
Consider that in some countries (eg Italy) running a foreign legal entity but being based in the country means that said legal entity must pay taxes in the country.
So I have frankly never understood what eResidency is for, as you will still have all liabilities for the country you are in.