In most schools, yes. All graded courses, including electives, usually count towards your GPA.