This error doesn’t mean that you cannot use layers within your files, it just means that whenever you make any changes within the file you created it will be reflected in InDesign document e.g. adding a new layer in the linked file will be reflected in InDesign while updating the link.
Solution:
In order to prevent new layers from appearing in your InDesign document please enable the option "Hide new layers when updating or relinking", as shown below: