Whether a Nincada can be deposited into different games depends on the game it originates from.
Pokémon Brilliant Diamond and Pokémon Shining Pearl
Nincada caught in Pokémon Brilliant Diamond or Pokémon Shining Pearl can only be deposited into Pokémon Brilliant Diamond or Pokémon Shining Pearl.
Pokémon Sword and Pokémon Shield
Nincada caught in Pokémon Sword or Pokémon Shield can only be deposited into Pokémon Sword or Pokémon Shield.
Pokémon Bank and Pokémon GO
Nincada moved from Pokémon Bank or transferred from Pokémon GO can only be deposited into Pokémon Sword or Pokémon Shield.