But not to take away from the solidarity which is indeed genuine. Portugal also has an extremely low birth rate problem and needs tax payers fast in order to prevent state pension funds' collapse in the next decades. So there is also a secondary motive here to attract families to Portugal.
I just wish I go with my car and help someone come to Portugal.
Ukraine birth rate: 1.23 births per woman (2019)
Portugal birth rate: 1.42 births per woman (2019)
Ukraine-to-Portugal migration is just displacement of low-birth rate white people from one place to another.
If you get only young immigrants, it does help you, to the detriment of their place of origin, which is left with an older population. A lot of people who migrate for economic reasons and such are young or younger. 65-year-olds don't often get up and emigrate somewhere. But I don't suspect that's the case under war time evacuation though.