Yes it is possible! But i think you will have also other possibilities.
I assume you are trying to filter an ARRAY-DATA inside your DB or a SELECTION-TAG-FIELD or something like that, right?
If so, there are also other methods and techniques how to do it.