No, I think they'd have to go to penalty shots. Let me know if this is right, but if Germany loses by one, both Germany and Denmark will have 6

and be at +1 in the GD.
If Portugal wins as well (say by 1 goal) they will also be at 6

and +1 in GD. That would leave a 3-way tie, right?
But that Denmark-Portugal game today was fantastic. The Danes were thrilling to watch. Portugal gave up after they were up 2-0 and only started trying again after the Danes tied it up