Yes, mixed cable sizes are OK as long as the smallest cable complies with the OCPD's size and type. AND that the overall circuit's voltage drop is within acceptable limits.