There are other requirements for it to be a legal pass though.
ART. 2 . . . An illegal forward pass is a foul. Illegal forward passes include:
a. A pass after team possession has changed during the down.
b. A pass from beyond the neutral zone.
c. A second or subsequent forward pass thrown during a down.
d. A pass intentionally thrown into an area not occupied by an eligible offensive
receiver.
e. A pass intentionally thrown incomplete to save loss of yardage or to conserve
time.
EXCEPTION: It is legal to conserve time by intentionally throwing the ball forward to
the ground immediately after receiving a direct hand-to-hand snap.