'formula_pretty' for generating composition object?

I noticed in the examples that ‘formula’ is used for generating composition object. Is is also possible with ‘formula_pretty’?