I don’t know the actual law on it but I seriously doubt if you follow the laws about how to grow plants legally no one is gonna mess with you. If it’s outside it needs to be fenced in and not visible with chicken wire or something else over top of it. If it’s inside it needs to be in a locked room.
Unless your gonna be staying there or live within a short drive gardening from a distance could be a pain in the ass.