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

Don't scratch your insect bites!

The lovers scratched their names into the bark of the tree.
different meanings