That works, tho it does not work in realtime (as in if you wanna make small adjustments).
If you set yout image to indexed mode in Image > Modes you can go to Image > Modes > Color Table...
There you can select and adjust all the colours which are used in the image and you will see them change in more or less realtime on the screen. And you can add new colours up to 256.