If you technically change all the fundemental basics of a pokemon game, to your own creation, like the name, the battle formulas, sprites and tiles, and made sure to not include anything created by Game Freak in your game, then sure. You could sell the game.
Nintendo might still try to sue you for stealing Pokemons concept though, but it is unlikely, so long as everything in the game is made by you.