Yes, it is possible: you can do this by using any A/B testing framework of your choice. Read more about this in the guide for running experiments server-side.

Previous FAQ: Can I run an experiment only on a subset of my users?