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

The old house served as a dwelling for Albert.

He built a modest dwelling near the pond.
the same meaning