Yes.
A USB port offers charging voltage of up to 5v and can give 500 mA output max so provides 5v x 0.5 amps = 2.5w
I use a front light with a separate battery (lithium ion), the charger for which offers 8.4v and 1 amp - the battery is 8.4v nominal (4 x 18650 batteries in series parallel) and rated as 4400mAh.
The batteries you can charge using a USB are quite small (ie low capacity and voltage). Not sure whether that makes them less or more likely to catch fire but the power going into them is much less.
I agree with this ^^^^^. My batteries are from
Magicshine.
From Battery University: "Lithium-ion operates safely within the designated operating voltages; however, the battery becomes unstable if inadvertently charged to a higher than specified voltage. Prolonged charging above 4.30V on a Li-ion designed for 4.20V/cell will plate metallic lithium on the anode. The cathode material becomes an oxidizing agent, loses stability and produces carbon dioxide (CO2). The cell pressure rises and if the charge is allowed to continue, the current interrupt device (CID) responsible for cell safety disconnects at 1,000–1,380kPa (145–200psi). Should the pressure rise further, the safety membrane on some Li-ion bursts open at about 3,450kPa (500psi) and the cell might eventually vent with flame. (See
BU-304b: Making Lithium-ion Safe.) Venting with flame is connected with elevated temperature. A fully charged battery has a lower thermal runaway temperature and will vent sooner than one that is partially charged."