To look at this problem dialectically, we need to be clear about the advantages and disadvantages of applying for classes or taking self-taught exams:
To sum up the above advantages and disadvantages, for those who want to change careers quickly, the advantage of applying for classes is that they can save study time to the maximum extent, so that they can master some core technologies in a short time and meet the needs of their work. Secondly, the training center has a better understanding of the IT market and enterprises, and can give more targeted lectures. Compared with the theoretical knowledge that only stays in books by self-study, applying for classes can better accumulate practical experience, better connect with enterprises, and truly show their skills, rather than being an armchair strategist.
But you have the ability and time. I suggest you learn by yourself first. If you can master the knowledge about UI design by yourself, you don't have to waste money on training institutions.