He and I was taking the dog for a walk.

can i used that for a sentence?

The right way to write that sentence is:

He and I WERE taking the dog for a walk.