"The noncitizen may legitimately come to the United States for a temporary period as an O-1 or O-3 dependent nonimmigrant and depart voluntarily at the end of their authorized stay and, at the same time, lawfully seek to become an LPR of the United States."
https://fam.state.gov/fam/09FAM/09FAM040213.html#M402_13_5_B