Definitely the way to go if you want to control an outlet from a light switch hard wired. But with todays 'smart' products it seems a somewhat unnecessary complication. Even if you don't want smart stuff anywhere else, wiring it into free standing lamps and a switch on the wall to control them gives you a lot more flexibility. ie, you can move lamps around, add extras, etc, no need to predetermine locations or run special cables.
It doesn't even have to be that smart if you just want on/off. Quinetic switches are an option there https://www.quinetic.co.uk/