Yes, this can be done by integrating tools like "Declarative Lookup Rollup Summaries Tool" you can install the tool from Salesforce App Exchange.