Career switch from IT to Dev


I am IT professional working as a database administrator for 6 years. Now, I want to switch to a Development role because I don’t want to work in support but create something. I have started learning web development from udemy and codecademy. But I keep getting doubts like am I too late already or will I be able to land a dev job after a long background in support role. Secondly, is web develpment correct career path for me to start, I am seeing lot of attraction in AI/ML. Any advice will be helpful.