1. The house itself was ugly.

2. I saw Mr. Smith himself.
3. I don't like the house itself.
---------------
Are they all grammatical?

Yes, depending on the context.