Is it worth it taking AP's and dual enrollment clases not related to STEM if I want to major in it?

I want to double major in electrical engineering/computer science. I’m going to take dual enrollment history next year (it’s only one semester long because it’s a collage course), even though I know it won’t really be useful for what I want to major in. The only reason why I would take it is because it would get rid of some my general ed requirements and free up space for me in collage. I know electrical engineering is hard in general, and that’s why I wanted to free up space for computer science and just my course load in general. I was also thinking about doing dual enrollment English/history my upperclassman years, so I was wondering if it would really be worth it. Note: I’m also trying to take honors/AP’s in my sciences and maths of course, but, like I said, I was wondering if it would be worth it putting work into stuff I don’t plan on majoring in.

Also, it if helps, I want to try and get as much scholarships as possible because my family isn’t well off financially.

If you go to a college that would accept the credits then yes, it would help

As a senior who recently applied to and was accepted into a top Biomedical Engineering program and was faced with a similar decision, I can honestly tell you that it will not hurt you nor was it a waste of time/energy. I have taken three dual credit courses (two semesters of US History and one of general psych) and believe it only added another dimension to my application. I was even able to get a letter of recommendation from one of my history profs, which definitely was an advantage as it showed I was ready for college-level work.