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

The sole object of her trip was to see her children.

The object of the verb.
different meanings