Yes. Under the German Postal Act (Postgesetz), intentionally opening, delaying, or destroying mail addressed to another person without authorization is a criminal offense punishable by fines or up to one year in prison.
If unsure, do not open it. Contact Deutsche Post or the sender. Privacy of correspondence is a constitutionally protected right in Germany (Article 10, Basic Law).