That is possible. If the opposing player was inside our half when the ball was played, but 10 yards outside our half when he played (or attempted to play) the ball then the free kick is given where he did that, not where he was when the ball was played.