Yes, the LM317 is good for this but it's only rated to 1.5A, if you want more you'll need additional components.
To cut down on power dissipation I'd recommend using a centre tapped transformer and switching to the centre tap for lower voltages; this can be done automatically if needs be.
The minimum output voltage from the LM317 is 1.25V, to go lower you need additional components.