Yes this should be possible.

When you generate variants, each size/color combination gets mapped to a part product. This part product is...