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

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

I treated his advances as a joke.
the same meaning