As of now, Polish authorities allow every person fleeing the armed conflict in Ukraine to enter Poland. If you are not a Ukrainian (a citizen of another country) and have no right to enter Poland / Schengen area, you will receive a temporary permit to stay in Poland (for 15 days) from the Commander of the Border Guard.
Then (depending on your situation):
– you can leave Poland to go to your own country (if you need help with this, contact your country’s embassy)
– you can try to make your stay in Poland legal, i.e. apply for temporary residence [see: https://www.gov.pl/web/uw-mazowiecki/zezwolenia-na-pobyt2]. Please remember that a temporary residence permit application submitted no later than on the last day of your legal stay in Poland makes your stay in Poland legal until the relevant decision is taken.
– you can apply for being recognised as a refugee but PLEASE NOTE THAT refugees are people who are threatened with persecution / endangered in their own country. People who are in Ukraine are advised to leave the country and handle official matters after reaching a safe place in Poland
– be covered by temporary protection. Temporary protection is granted to citizens of other Ukrainian countries who fled this country after February 24, 2022, if they had refugee status in Ukraine (or their immediate family members had such status). Temporary protection will also be available to people who had a valid permanent residence permit in Ukraine and cannot safely and permanently return to their country.
Even if you are allowed to stay in Poland, this does not mean you can freely travel within the European Union / Schengen area. Laws related to such travel have not changed.
Please remember to monitor announcements made by Polish authorities and the Border Guard.