Can I activate my plugin only for those registered on the site?

Do I need to edit the plugin and rebuild the forum to make such a simple change or can I do it from the admin panel in the head or footer section. Is it possible?