Yes, there are elective courses in the university. Generally, there are elective courses from the beginning of sophomore year. It doesn't matter if you don't like them, as long as you pass, but you still have to pass. Unfortunately, the teacher always calls the roll and won't give it to you at the end of the year. There will be no credits! You must repair it again.
If the course has just started, I suggest you see if the elective courses can be adjusted.