Yes. Most, if not all, passenger trains in the USA (and many elsewhere) have electric outlets and/or USB power ports for charging devices. Simply research each specific train schedule to ascertain the availability of electric outlets and USB ports. Some trains even offer Wi-Fi nowadays.