It was tried some years ago, but dropped very quickly when players who had to take a free kick found that once the place for a freekick was moved forward, they were too close to the goal. In theory it should work, but it didn't.
It would work in the rest of the pitch.
