I rarely have to change squawks (IFR), but it does happen.
One anecdote.
Flew a trip from South Carolina to Ohio on one code. Stayed for a week. When I picked up my clearance for the return trip it was the same code! Reached down to set the xponder and the code was still there. Told the controller, that's what I got flying in. He was also surprised. Should have went to Vegas instead