Yes.
However, that is something that should happen infrequently, as that is your production install.
For development and test purposes, the very first part of Beginner's Guide to Creating Discourse Plugins - Part 1 tells you to setup a “Development Environment” where you can do changes and test just refreshing your browser.