The question is a bit too general to answer directly. It depends.
For example:
Are you building a plugin and want to make certain admin pages available via custom capabilities?
Are you wanting to restrict front end access of a plugin’s custom post type?
Are you using someone else’s plugin and want to limit access?
Something else entirely?
In short, I need specific information on what you’re wanting to do. In general, yes, it’s possible to limit access to things. But, sometimes that depends on the plugin.
Would like to know if I can limit access to using a plugin with a Role
The question is a bit too general to answer directly. It depends.
For example:
In short, I need specific information on what you’re wanting to do. In general, yes, it’s possible to limit access to things. But, sometimes that depends on the plugin.