Only those who are actually at the ceremony, either in person or via Zoom, can dedicate the merit of their efforts to somone.