Preemptive pardons have been used in recent history.
https://www.criminallawlibraryblog.com/amp/preemptive-pardon...