One may act to a person's benefit even in their absence

זכין לאדם שלא בפניו
Shiurim in this topic
7177. Guidance on Using Insurance Compensation for Torah, Mitzvos, and Charity הדרכה על שימוש בפיצויים מחברת ביטוח לתורה, מצוות וצדקה
7769. Distributing Tehillim, Articles, and Notices in Synagogues and Communities הפצת תהלים, מאמרים, ומודעות בבתי כנסת ובקהילות
305. Pri Synagogue, Aliyah to the Rebbe, and Buying Pesukim for Absent Chassidim בית הכנסת פרי, עליה לרבי, וקניית פסוקים עבור חסידים נעדרים