Yes-ish, seems like @ashcortech actually has some experience here and might be willing share what they ultimately did. You will like need to modify triggers and conditions to match your unique needs.
The post give you some idea on changing the callflow control, you will likely need to do some googling to get everything else lined up.
Alternatively, if you want to try to do it in the web GUI, you could try stringing multiple dynamic routes together.
Here is a post about how to change a CFC from a dynamic route. You would need another dynamic route in front of this to run your determination query and route to this dynamic route if the conditions are met.
Using Dynamic Routes for Call Flow Control - FreePBX / Tips and Tricks - FreePBX Community Forums