A quick and easy solution would be what you're suggesting, but in the long run, disconnect the black, white and ground - pull the wires out of the breaker box and use an external junction box. Make your splice in the ext. junction box then run a new section of Romex back into the breaker box and...