What would you call track and rail in French? Track is the whole thing, while rail is a piece of metal e.g. on the right.
My suggestions are:
track - voie ferrée f
rail - rail m
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. It can also be called une ligne de chemin de fer if the railroad only has one track.
A rail is translated as un rail.