Yes the defender must intentionally move his leg/foot into the path of the ball - an act of defense.
However a poorly thrown pass against a leg that is not moving is just that - a poorly thrown pass and now a loose ball.
Sorry coach the defense did nothing wrong. You just made a bad pass.