Yes, you can use Segments to do exactly that. More information on Segments here:

https://docs.flagsmith.com/managing-segments/