Source Control: Is it possible to share a plugin between multiple projects using perforce?

Hello,

I want to be able to work on a plugin in one project which could have tests etc. just for that plugin while simultaneously using the same plugin in a separate game project.

I know you can do this with Git submodules but I would like to try out Perforce as I have not worked with it before and want more experience with different source control systems.

Back to the question: Is it possible to share a plugin between multiple projects using perforce?

And a natural followup. If yes then how should I set it up?