Your code looks correct and you could feed both outputs to a new classifier.
I’m not familiar with the wanted workflow, but assume you would like to stack these features somehow before processing them further?