Not always. Each operator will have its pricing policies.
The tickets might be the same, a bit more expensive, or sometimes even cheaper than those purchased directly at the station.
There might be a higher fee for trips where online purchases are not yet available, and people need to queue to fetch them at the station (mostly railways).