There is nothing wrong with upgrading your education. The main thing that I think you need to take out of this thread though, implied and stated outright by some people with some serious experience, is that you are going to have a very tough time doing not only a good job, but any job, as a new infantry officer while accomplishing your education goals. If your education goals require you to attend a bricks and mortar school then there is a VERY high chance this will be completely impossible.
Good for you for having a plan. Many people in the mid-twenties do not have a plan at all. It is hard to convey just how time consuming life in the combat arms is. (And in other trades I assume but don't have firsthand knowledge). Even if you remain single your whole life, don't have any kids and basically don't have any hobbies outside of work, work will consume vast amounts of time. How much? There WILL be period where you will be at work, 24 hours a day for weeks on end. Also, there will be periods where you are sent on a tasking for weeks or months at a time anywhere in Canada or, even the world, with a minimum of notice.
Being an Army officer is not a job. It is an all consuming lifestyle. If you are passionate and doing it for the right reasons you will love your job, if not...