When you race in the game, your opponents are ghosts. So racing with friends is not possible.