Yes, in most cases that is fine.. If the light charges by USB and is meant to be USB charged, your PC port is generally safe to use.
The bigger concern is the light itself, not the PC. Cheap battery devices sometimes do a poor job with heat or battery management when left plugged in all the time.