Yes, that's the way I'm using. When importing some example to my server, everything works and also new files work if I clone them from the example. When I add new code file to the project without cloning, the #asset does not work at all. I don't know what is happening behind the scenes but I'll manage with this information though it's a "bit" strange.
J