How to move a layer using a slider control?
Yes, in short. But you will need to learn Expression Controls. 

Search YouTube for "Expression Control Slider After Effects"

There are a lot of good tutorials which will walk you through the process.