Well from main station you have direct trains to Berlin, from the airport you have to change the train once at least (and the trains from airport also stop at main station).
If you buy a full price ticket, you can change the train whenever you want.
If you have a discount ticket you must take the train you paid for.