Does "line" mean the same thing in these two sentences?

They were arrayed in line of battle.

He drew a line on the chart.
different meanings