Sounds a reasonable way to do it, as long as circuit is isolated prior to do this that is!
I'd also suggest that junctoin box is fixed somewhere secure so it would not become damaged or have any mechancail stress subjected to it, so to reduce risk of cable being pulled out of terminals.
DIY how to tutorial projects and guides - Did you know we have a DIY Projects section? Well, if no, then we certainly do! Within this area of our site have literally hundreds of how-to guides and tutorials that cover a huge range of home improvement tasks. Each page also comes with pictures and a video to make completing those jobs even easier!