Hey Viktar,
Yes, I believe so.
As in your example image you can use a driver instead of a constraint.
One thought comes to mind though when I look at your example, not only is it easier/quicker to add a constraint than setting up a driver,
but lets say your character is holding a dagger and wants to switch hands,
It would be far easier to add keyframes to the influence, on the constraint than the driver.
That’s my observation. Maybe you could try it out and let us know what you think.