Yes, exactly. First convert the text to outlines, then ungroup it and convert to compound path.
There’s one possible problem with this solution: with some fonts holes may appear at the areas where letters intersect. To avoid these holes, it would be a good idea to apply Pathfinder Unite to the letters before ungrouping.