Yes, it is possible:
julia> combine(groupby(df, [:x, :y]), :z => x -> join(sort(x), ","))
2×3 DataFrame
Row │ x y z_function
│ String String String
─────┼────────────────────────────
1 │ a x l,m
2 │ b y n