Is it possible to set a member role through custom sign up now?

I am aware that this is not possible in the past but is it possible now or do we need still to do it manually? Also in the PrivateMembersData Database, what is the group[] array for? Thank you.