What "plug" are you referring to? The 4/7 rear trailer plug or the brake controller? The wiring harnesses have the provision for you to add both at a later date if you do not order them with the truck. That didn't used to be the case and would require splicing in to the wiring harness to add a brake controller or trailer wiring connector.
Buy the item you want to add in (from the dealer or maybe aftermarket), attach it, remove the protective cover and plug it in. You may have to have the dealer flash the BCM to get the truck to talk to it also. A quick call to the dealer or go to a GMC/Chevy truck forum to find out more about that.
https://www.etrailer.com/t1-2017_Chevrolet_Silverado+1500.htmDon