Greetings Krakmann! That is interesting as I didn't think there would be scenarios where a C notated as B#, etc.
Yes. Take the rule "you don't repeat letters". If you take, for example, A flat minor, you have
A♭, B♭, C♭, D♭, E♭, F♭, G♭
As "B" has alredy been used for Bb, you can't repeat "B" for the natural B, so it is Cb instead. The same for "E". It's been used for "Eb", so "E" is Fb. And this "don't repeat letters" is the reason double flats and double sharps exist (or at least one of them).
In real life, people I know would never use "Cb". They would say Ab, Bb, natural B (or just B), Db...