Not true, unless the train is only hauling a single container (highly inefficient and impractical). Once a truck is loaded, it can leave. A train may have thousands of containers to load before departing, and may have to wait for other rail traffic before leaving. A truck could be probably be loaded in under an hour. A train would probably still require that the items be loaded on a truck first (unless you have a warehouse on the rail line) and then transferred to a train. That's got to be multi-hour process for both loading and unloading.
To the extent that both use shipping containers, the process should be identical.