You can use a transformer at any voltage until the insulation breaks down. You are not going to do this at 5V so don't worry about the voltage.
Sometimes the turns ratio can be expressed as voltage in and out.
However you have to be cairfully of the input impedance of the transformer and make sure it is not too low for your driving circuit.