Will I automatically get a master’s degree while pursuing a Ph.D.?

No, Ph.D. students do not automatically receive master’s degrees. But you’re welcome to speak to your department about coordinating your Ph.D. coursework with master’s requirements so that you can get that degree as well.