If it is a switching power supply, it is fine. If it is a transformer, it needs a selector switch.
The switching power supply is light in weight, while the transformer is relatively heavy.
You can carefully read the label on the charger. If the input voltage indication is within the range of 100V-250V, it is a switching power supply charger. It can automatically identify different voltages and directly within the range of voltage indicated by the logo. Feel free to use it.