Before smart switches, I know someone who wired all their lights like that. They didn't like ceiling or wall lights, so all the lamps were table lamps on round pin sockets, which were controlled by dimmer switches by the door. It was much better than fishing around trying to find the switch on the cord or under the shade.
(I don't remember if they were 2A or 5A)
Theo