Yes, you most certainly can as long as the model you have is designed to be powered via USB (which it will, most likely). However, it needs to be noted that you may want to invest in an AC adapter to speed up the charging process. A USB port simply can’t supply as much power as an outlet can in your home. So, while both ways work, doing so on your laptop will take longer.