Yes, some powerbanks can automatically switch between available voltage and amperage output levels.
After you connect a device to this type of powerbank, it automatically recognizes what output level should be used.
For example, new Baseus powerbanks have the BPS2.0 intelligent power distribution technology. It is a proprietary charging technology, that automatically adjusts the voltage and amperage output levels.