Yes, this is what is required by the laws of each country (it is what I have done for years). Recently, the German authorities may ask to see your UK passport too before you leave Germany UK-bound, as they now have to check all passengers have UK nationality, residency, leave to remain, or an ETA