2014 Buick Verano - Battery issue

@Tester mentioned in another thread that some diagnostic codes are permanent, and don’t get erased even if the battery goes dead. I hadn’t heard of that before. Are permanent diagnostic codes a recent thing?