Hi,
sorry, but i think no. You have to make a note for this axis ( like this G1 X0 Y0 Z0 ;B0 C0).or delete it.
If you have it in a code machine will be read it always and in a case 3 ax machine, drive control say you that you have many axis on a line (or something similar)
I would personally solve this by a user application that would remove the rotary axes after it was generated.