Is it possible to create cryptomattes from masks made in the "Masking" tab?

Having seen how it’s possible to create crypto-mattes from roto masks made in Silhouette, I wonder if you can possibly do something similar with masks made in Blender?