When your Pokemons are dead, you can go to the Pokemon Center at any time.