Same as in the USA. They are legally required to treat you in emergency situations there, too.
BUT, they will charge you for their services afterwards--both in the USA and in Poland.
Although I suspect that the bill from the American hospital will be A LOT more...