You can do it but if you are going to file for your green card while you are in the US as a tourist/visitor, you need to discuss the timelines with an immigration attorney to understand the potential pitfalls and issues to avoid.
Answered on Mar 14th, 2013 at 6:39 AM