It's not compulsory to sketch before painting. But if you want a professional aspect and want to be an artist so it is much better to go step by step and frame your ideas in a perfect way before painting. And hence, sketching is important!