The short answer is yes.
The correct answer is maybe
My answer is no.
I would suggest you seek professional advice first. If you are asking this because there is a light switch that has stopped working and you want to swap it over for a new one, then you will likely have no problems doing that once you have become a YouTube master.
However, this is a far cry from the customer who asks this with the view to building their own house which they then want to rent out.
I personally like cooking, but I am not about to open my own restaurant with the view to serve 100 covers every night.