Welcome to Psychonaut,
I would imagine it possible with kieff added to the sugar, But I also think the kieff may turn into oil in the apparatus if it is hot. Making the cotton candy a sweet skunky oily mess more then likely fucking your apparatus, unless its stainless steel and could be wiped clean with something like Acetone if the worst comes of your experiment.
😆
Good Luck and Do Report 8)