USCF has stipulations allowing for the game to continue after an illegal move has been made. FIDE tries to avoid such situations.
But it's entirely possible for an OTB game to be played from an illegal position. Heck, Chess960 is all about starting play from otherwise illegal positions.
Related question: what if a legal position is reached via illegal moves? Do legal moves exist in that case?