Does word "vehicle" have the same meaning in the following two sentences?

A congregation is a vehicle of group identity.

The play was just a vehicle to display her talents.
the same meaning