Yes, foreigners who work in Poland and pay Social Security contributions are entitled to benefit from the Polish pension system.