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

I didn't have any coins to pay with, so I used a note.

He detected a note of sarcasm.
different meanings