Is the word "burn" used in the same way in the following two sentences?

To burn the mouth with pepper.

The iron burnt a hole in my dress.
the same meaning