It is better to do well in classes related to one’s major. However, if your overall UW GPA is 3.8+/4.0 in rigorous classes, and you have a few accomplishments among your various ECs, you should consider yourself still in the game.
Edit to add: Not that, as Damon30’s link will show, “still in the game” means single digit chances for any unhooked applicant.