You can buy ticket on the station without any problem (or even enter the train without ticket, then you just pay 10 PLN more).
Not quite. If you enter the train without a ticket, you absolutely MUST report immediately to the conductor in the first, or sometimes last, car, or you will pay A LOT more as you will be fined if you don't.