Is line used to mean the same thing in the next two sentences?

A nice line of shoes.

They were arrayed in line of battle.
different meanings