it isn't, you can put anything up you like, the only illegality is not applying after you've done it, and when you apply after you've done it, all we can do is consider the planning reasons, not the fact that you did it without permission.