Yes, the presidential pardon power is absolute and can precede any potential legal action.
What a shame.