Yes. This should be possible. Named Values can be configured using their ARM REST APIs.
In your policy, you should be able to make a Create or Update Call using the send-request policy to update the named value. Also, to authenticate against the ARM REST APIs, you could leverage the authentication-managed-identity policy.