Yes, this deviation will work. However, you will typically put the deviation statement in a separate annotation YANG module. You can always try this out by creating your own ConfD project or by modifying an existing example in the ConfD example collection set.