It depends on the train. If it’s a slow train then you might be able to open the window. But most train’s windows cannot be opened since they are air-conditioned.