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

The line of soldiers advanced with their bayonets fixed.

He has a smooth line but I didn't fall for it.
different meanings