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

She threw the invitation away.

She was an invitation to trouble.
different meanings