Implement a plugin for a custom metric that uses a custom rule defined in another plugin

Hello everyone,
I’d like to know if it’s possible to implement a metric plugin that uses a rule defined in another plugin.

Thanks to anyone that will take time to answer.