Due to the intent system on Android allowing a pinned application to open another one (for example by sharing something), I prefer instead to create a guest user and add the app in question to that account.
That way no other applications are available to open, accidentally or otherwise.
That way no other applications are available to open, accidentally or otherwise.