No, for custom aggregate functions, you would need to use pivot_table, as pivot doesn't offer aggregation capabilities.