No! The have different internal resistances and also different charching behaviours. This means, that the NiCd cell will always get discharged first and then polarity reversed while the NiMH cells continue to supply current, a process that kill the cell after very few cycles.
You are supposed to not even mix different cells of the same kind if possible.