Of course, before you do anything...turn the power off to that outlet.
On the outlet there 2 silver screws and 2 gold screws. The black wire gets attached to the gold and the white wire to the silver and the ground wire to the green screw.(If all the screws are used, a pigtail will be necessary.
A single pole switch will have 2 gold screws. The black feed coming from the plug gets attached to one screw and the black going to the light, on the other gold screw.The 2 whites get connected together with a wire nut and the ground goes to the green screw.
Hope this helps you out