Close, but not good enough if courses are going to be attended by more than one user. In that case you need the following tables:
user (user_id, name, password, etc)
course (course_id, title, etc )
registration (course_id, user_id)
This last is a many-to-many table. Or you may even need the following, if courses are offered more than once, and it matters when the users took them:
user (user_id, name, password, etc)
course (course_id, title, etc )
session(session_id, course_id, date, location, etc)
registration (session_id, user_id)