I did a mechanical engineering degree and ended up programming (way better pay) which I already could do before uni. I don't regret it though - it's much much easier to learn programming on your own than other kinds of engineering.
E.g. if you got a job doing low level programming, like firmware development or even chip design (basically still programming) your EE knowledge would be very helpful.