There is nothing in the code that dictates the physical relationship between the light switches and the receptacle. But widening the door involves a bunch of work. The wall will need to be opened up to install a new header over the door and the wires for the switches may come down through the top plate, so they will have to be disconnected and refed into the new box; depending on which way they run, they may not be long enough to reach the new location. You will also have an issue with the finish flooring.