If your phone came with a usb charger, then yes, you can use the pc to charge the phone. Plug the charger into the usb port on your pc.
This is a Simple Dialog Demo.