Network plugins and particular themes

I try to activate all plugins which are needed but some themes should avoid those plugins. Is there any code to manage plugins as Network defined but filter can be made not to be activate on particular theme?