No, its express purpose is to ensure exits can only be used as exits. Choosing to trap the person is an exceptional condition the same way it is in an elevator.
The same can be said about guards protecting an exit, and, in all honesty, security portals probably present fewer risks than guards, especially armed guards, where there's a reasonable possibility that building management will risk a lawsuit to forcably detain someone trying to leave: false arrest alone is better for all parties involved than false arrest plus battery and likely injury.
This device's express purpose is to restrict your exit from a building or area.