Master’s before PhD?

I’m a computer science student still in undergrad at the moment. Honest to say my transcript isn’t “flawless” since it has two Fs one D, missed a semester or two (although they were mini semesters), and also my GPA still needs working even though its not that bad. I was planning on getting a masters degree to better my academic record before getting my PhD someday and was wondering is this a good option?

Popular: Top 5 the Most Famous Ukrainian Authors Tips For Adult Education Top 5 the World-Famous Authors 6 Amazing Facts about Ukrainian Language Top 4 Ways To Improve Your Quality Of Work