Poland will definitely accept them, they have publicly stated so.
Edit: If they would decide leaving their country my very early tip is to download Google Translate with the all locales they know + country where they are. While you can find many people who speak Ukrainian/Russian in central EU countries, it is a priceless help for any foreigner. I had occasion to be a participant of a talk between people, who were writing the phrases on the screen to communicate. Since that moment, I have downloaded Ukrainian locale pack for offline use in Google Translate.