Sort of, though the traditional way is to set a Game State variable and then call the code for what you are handling based on the current game state.
The Dark Invaders tutorial has a decent implementation of this using an enum called eMode:
enum eMode { eGameSetup , eGameReset , eGameTitle , eGameWaitForFire , eGameLevel , eGameLevelWait , eGameLevelWait2 , eGamePlay , eGameDie , eGameWin , eGameOver };
Then setting the mode:
eMode g_eGameMode = eGameSetup;
For simple game states, this is a really good way to go.
Using DGDK since 01/01/2008
Blah - http://www.john.goewert.org