Can a Ukrainian citizen who entered Poland after February 24, 2022 and has a biometric passport go to another EU country for a few days and then return to Poland?

Starting June 11, 2017, based on the Regulation of the European Parliament and of the Council (EU) 2017/850 of May 17, 2017, holders of biometric passports issued by the Ukrainian authorities may cross the external border of the European Union without a visa provided that their total stay does not exceed 90 days within each 180-day period.
Consequently, citizens of Ukraine holding a biometric passport, as visa-free travelers, in accordance with Regulation (EU) 2016/399 of the European Parliament and of the Council of March 9, 2016 on a Union code on the rules governing the movement of persons across borders (Schengen Borders Code), have the right to move freely within the EU for a period of 90 days after entering its territory.