Yes, you can put anything in the user object that is documented here: https://fusionauth.io/docs/v1/tech/connectors/generic-connector/#using-the-generic-connector
You can return registrations which contain roles as outlined in the sample JSON in the link above.
Hope that helps!