You can use it after beating Whitney. You only need a Pokémon that can use the move, I think mawile can