Colour coding based on user input

I would like to create a form where the answers for all questions are 1, 2, 3 or 4 and depending on the choice, I’d like that to then colour code the questions that was asked if I was to go back and read the submitted form - is this possible?