Can you store RGB values in variable for neopixels?

Delta_G:

if(digitalRead(buttonPin) == LOW) {  // if the button is pressed

red = someNewValue;
    green = someOtherValue;
    blue = whateverBlueNeedsToBe;
    noseJewel.setPixelColor(4, noseJewel.Color(red, green, blue));
}

I'll try it thanks!