Yes, a switch can be converted into an outlet if the wiring can be identified back at the source and one of the wires (the neutral or white) can be connected to the neutral source. Be very careful to note the existing wiring configurations before anything is changed.