2006 Chevrolet Silverado 1500

Truck is accelerating on its own when there is no pressure on the gas. I tried to stop, but truck kept pulling, had to put brakes to the floor to get it to come to a stop, skidding as truck wanted to keep pushing. I turned it off and it shut off hard (usually would just shut down) but it jerked hard and then a short sputter. It started fine, but as I started to brake exiting parking lot same pushing and skidding and starting to accelerate on its own again. And has random high idle. Was wondering if it could be TPS sensor?