Absolutely true, A power supply is an electrical transformer that regulates the electricity used by the computer.
Electric transformers helps transforms the electrical power from one voltage to another voltage, it also can be used to either decrease the voltage "step down" or increase the voltage which is known as "stepping up."