Yes, it can be an adverb.

You are confusing 2 things.
1. "дом" as a noun is translated into English as "a house" or just "a building" (of any kind). There is another discussion about it:...