Does the word "flap" have the same definition in the next two sentences?

He wrote on the flap of the envelope.

The flap of a sail.
the same meaning