Although Scotland has its own legal system, which differs from England and Wales, it is worth bearing in mind that you need to adhere to terms in your Deeds and the local planning policy.
Your Deeds (HMLR office copies) may contain covenants (conditions) regarding things you cannot build. These are available online.
Your local planning policy will also be online.
Breaching these covenants, and/or planning policy, won’t end well.