Using "?" and ":" for making a Button?

Hello,

I got a script for a pause menu and it’s like this:

if (GUILayout.Button (IsBeginning() ? "Play" : "Continue")) {

My Question is:
Can I use “?” and “:” in the same way to chose, which GUILayout should be used?

I want to make the menu reacting on keyboard input instead of mouse input. I use an int var for the selected Button and want to check if the Button is the selected Button to give it the hover texture. Can I do this simple in a way like the code above or do I need a if/else for every single button?

ternary if