While I like to improvise I'd never want to use a cut-off cable anywhere near a toddler. Whatever the savings or practical benefits, they just can't outweigh the risk of the toddler doing something that causes a shock, fire, ... Maybe for the best that you removed that light strip.
Fire is more worrying. You can also make small sparks with 5 volts under certain conditions, which may frighten someone about as much as a small shock.
There were no loose energized cable ends in this story, fyi. The light strip was your standard white LED tape cut in the middle of the copper pads [0]. I soldered the USB cable's power leads to the copper pads [1] and then covered the solder joint with heat shrink tubing filled with liquid electrical tape [2]. Then on the strip I connected to, it was the same procedure but with a female USB-A connector. There were no conductors with exposed ends to move apart and make a spark.
Yeah my plan was to anchor the loose cable ends under wood once we lowered the bed, but as I said, we pulled off the light strip very soon after. It now sits in, you guessed it, the big box of cables, in case I need a motion activated 5V DC power supply.