Sure. App settings -> account list -> end of the screen, "number of recent folders" and also "how long to keep a folder on the recent list" (or something like it).
Will affect the dialog when you "move a message to folder..." and also the app's main window if you set it to show recent folders there.