A professor at a major university would probably have a Ph.D. in some branch of arts or sciences.
But a Ph.D. certainly doesn't guarantee anyone a job as a professor!
Other kinds of schools may have professors or lecturers with lesser degrees.
Some particular kind of specialty, especially in medicine or law, would have a degree with a different name specific to that field.