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

Stick the corner of the sheet under the mattress.

The friends stuck together through the war.
different meanings