Solo Run mode with Nincada

Will I be able to get both Ninjask and Shedinja when Nincada hits level 20?

Nincada evolves to Ninjask at level 20 and you need an empty slot in your party to get Shedinja when Nincada evolves.

**In a solo run the pokemon that you catch go to the PC, but this is an evolution.