Yes, this is possible. The current primary group for a user is added as a CSS class on the <body>
tag. This combined with the fact that Discourse supports SCSS means that you can apply different CSS styles based on the current user’s primary group easily.
If you have an example of something you’d like to do, I’d be happy to chime in.