Explain this penalty to me.

What about when someone goes in motion and comes set at the line of scrimmage and then has the receiver next to him move off the line? Wouldn't that be an illegal formation for the instant that the receiver hasn't moved off the line?