Yes, but no.
DoS have turn based combat, so you cannot blame the NPC, it won't move in your turn. You must see it as another obstacle in your way if you want to avoid hitting it, it's all.