I want to know if it's possible to get married in poland with her as am illegal immigrant
Sure, absolutely, came to Poland, you can swim across the river and then go and marry her, don't forget top tell them you are an illegal immigrant they will do all the paper work for you.