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

The relative security of the gay ghetto.

No escape from the ghetto of the typing pool.
the same meaning