Hi .. Joseph has corectly answered your question .. PLEASE accept his answer
Just be aware of the wire size you are going to use .. if the circuit is wired with #12 wire and connected to a 20 amp breaker you must use #12 wire in your installation ..
If the existing wire is #14 and connected to a 15 amp breaker then you can use #14 wire .. or #12 ..
Good luck .. Rich