It's always the right thing to do to inform LEO. You don't want to surprise them or cause any undue stress or further inconvenience.
So, is it also "always the right thing" to let an Officer search your car when they ask, even though you were just pulled over for a speeding ticket?