You need to find out if a course counts toward your major before you take it, not after. Check with your advisor to lay out a plan to get all the courses you need to graduate. If you can graduate with just 2 more semesters, then any slots you have open after the major requirements are accounted for can be used for classes that interest you. But don’t overload. You don’t want to jeopardize your GPA.