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

The immigrants spoke an odd dialect of English.

Dialects found in both Hangzhou and Shanghai belong to the Wu topolect.
the same meaning