Yes, spraying in a vertical direction is ideal for getting a perfect finish. To achieve this, you can move the spraying gun at a perpetual distance of 15-30 cm at constant speed. While spraying, ensure that the current sprays cover the previous sprays to get an even paint coverage.
Or another way is that you can apply “cross-coat” spraying – meaning that you combine the paints vertically and horizontally.