Yes. I agree with Akvan and firewns. One should try to get the mind off “having regrets”.
As I explained in another topic:
“Fear, confidence, sadness, elation are all associated with the “mindest” at the given moment. The mindset here is not a kilesa or upakilesa, but arise DUE TO kilesa and upakilesa. Elation is not joy (piti), but a “state of mind” like sadness.
Those can become one’s gati (bhavanga) for the next life if the mindset at the cuti-patisandhi moment is one of those.
– Fear and sadness are associated with births in the lower realms.
– Confidence and joy associated with births in higher realms.
– A neutral state of mind (upekkha) can be associated with brahma realms and optimized for an Arahant.”
Having regrets can lead to fear/sadness as a state of mind. That is an obstacle for learning and making progress on the Path.
What one can do is to engage in activities that will bring joy and confidence to one’s mind. These include giving and helping those in need and keeping the five precepts. Breaking the five precepts often leads to an “unsettled state of mind”.
Furthermore, there is no point in having regrets about past actions. One needs to focus on what one can do from now on. Angulimala killed almost a thousand people, but he was able to put that behind and attain the Arahanthood; “Account of Angulimāla – Many Insights to Buddha Dhamma“.