It does and it's documented on the wiki. I've written a few plugins privately, like implementing SCEP into caddy and adding a few other features.
Due to the nature of the plug system, you'll have to build caddy yourself if you add customizations like that.