Does word "behave" have the same meaning in the following two sentences?

Don't behave like a fool.

The children must learn to behave.
different meanings