Generally that's correct, albeit pretty much only used in writing. There are, however, political titles for which, to my knowledge, that does not apply. Minister, Chancellor and President (of the BRD) should all supersede a PhD title.
See the header here: https://www.bundesregierung.de/breg-de/service/bulletin/rede...