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

She was tempted to treat the whole affair as a joke.

The patient must be treated right away or she will die.
different meanings