Yes, this is just a short branch to service their factory. Not what people usually mean when they say 'railway line' (which would usually have more than one station).
Not many details in the article but it says they built a station, which probably means the trains they have contracted come from a station on the main line (not owned by Tesla), branch off and run to the Telsa station and then go back.