https://pubmed.ncbi.nlm.nih.gov/38118410/
What happens is that the excess of protein stays in your system, but, if you don't use the nutrient by exercising, the caloric excess will obviously make you fat.
"These findings demonstrate that the magnitude and duration of the anabolic response to protein ingestion is not restricted and has previously been underestimated in vivo in humans."