You are indeed correct in both your statements.
A track is translated most of the time by une voie ferrée. The error would be to translate it as chemin de fer, which is itself composed of one or more voies ferrées. You couldIt can also call itbe called une voieligne de chemin de fer if the railroad only has one track.
A rail is translated as un rail.