Yes, it’s a common setup:
- create a material with a param
- create a dynamic material based on the above
- create a widget with a slider
- use slider’s On Value Changed + Map Range to feed the parameter value to the dynamic material
Which part of this are you finding problematic?
One way to do it:

