A previous employer of mine occasionally used pilots ac CC on regional turboprops if numbers were lacking due to excess leave or sickness. Needless to say it wasn't a popular duty.
If pilots have done the same emergency training as the CC, first aid, fire fighting, planned ditching etc, then it might be acceptable to the authorities however a cabin crew in charge would be needed and none of the pilots would qualify for that position, which normally has experience requirements.