If your undergraduate degree is not in computing, or if there are gaps in your computing coursework, additional courses taken in pursuit of an MS degree could help make your PhD application more competitive. Similarly, if you did not do research as an undergraduate, or if your research did not lead to publications, research experience gained as an MS student could strengthen your application.