I wanted to know if it is okay to spot treat my hardfloors.

I just renovated part of house I just bought. Part of renovation included removing two back-to-back closets, which ended a hallway, in order to make a longer hallway into the kitchen.

There are some spots of untreated wood where parts of the closet walls were. It is 1 sq ft of the floor sparsely spread over a 3-4 sq ft area. The reason it is small area is that the hallway that we created had been a real hallway before the closets were created in last renovation.

Can I sand and treat the spots and NOT refinish the entire hall?

largest single area is 2"x4". There are 4 of these. Then there are two 1/2 " strips across the hallway wall to wall.

Any suggestions?