Yes, and the President and SCOTUS, all due to the Constitution which essentially says that they will get paid and cannot have their salaries cut for any reason (other than impeachment, resignation or death).
btw: As he did in his first term, Trump is donating his salary this term.
[hopefully this is considered factual, and not political. But if anyone flags it, I will be happy to delete.]