If moving with a stream of vehicles across a railroad track, it is safe to stop on the track for a short period of time.

It is prohibited to stop, stand, or park on a railroad track. You should never cross railroad tracks unless there is room for your entire vehicle on the other side of tracks.
DMV Writen Test