That is correct.
A sample heading as follows for the csv:
username,password,firstname,lastname,email,institution,course1,role1,group1
and you can add on and on...
course2,role2,group2,course3,role3,group3
Do take note to use the shortname for course, role and groups!!!