I don't think so. E-commerce must be better than math. No matter which of the two needs in-depth study, although e-commerce is very hot now, it is still at the primary level. If you want to develop in this field, you must work hard to get a certificate, otherwise you will be positioned as a salesperson.
Mathematics is a research-oriented subject. If you really like it, you should go all the way to high school. It will definitely be of great help to the future work.