Technically speaking, on an IFR flight if ATC asks you to stand by for your clearance, are you still VFR and therefore responsible for your own flight clear of obstacles?
Assuming you are not departing an airfield in CAS - in which case you will get your clearance on the ground before you depart (at least to the edge of their CAS).