Yes, it is. Just hold down "A," and mash "B" utill the game apears. Makes sure that you pay close atention to the screen though, because if it pops up and your still mashing "B," it will go back to the world map.
Some strategies about beating the mini-game were discussed here. I usually beat it with a mix of trial-and-error and rearranging the numbers one row at a time.