You can....for the most part there are no restrictions on non-citizens or non-residents investing in USA. There are considerations when you sell. Financing can be tricky, but there are lenders that you can use...typically they'll want 25-35% down. You can also pay cash.
You have to decide where you want to invest and how much.