It may be necessarily be unlawful to site it there. Living in it for anything other than an occasional day/night is another matter. (For the purposes of the violation of the Town & Country Planning Acts the local authority will probably not take action until a month has unauthorised usage has occurred).
It is often possible to seek temporary planning permission to live in one whilst structural / renovation work is occurring on the main house.