Yes, you can donate to charity on behalf of loved ones during Muharram. It is a meaningful way to seek blessings for them and perpetuate their legacy.