I would think so since Ruby comes preinstalled with OSX and this command is the one documented on the Homebrew homepage.