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

In line with.

He got out of line.
the same meaning