Does trans fluid wear out

Is it possible yes, probable maybe. Usually unplugging/disconnecting the battery will erase the codes.