Of course you can use them in the circuit. Disconnect them from the circuit if necessary, when programming. The simplest way is to use a DIP switch or jumpers to switch connections between programming/circuit use. You may not even need it depending on your circuit. You may find that it's enough to simply connect the programming pins to the programmer.
You should upload a simple diagram of your circuit and that could be used as an example to help you understand.