Yes, you can either write your thesis remotely or you can come to Germany. All the travel expenses, as well as the scholarship will be covered.