hi..
Yes, you can purchase a property and rent them out for your benefit.It is best to ask from an real estate agent who knows the area and provides you the best location for your living.With a H1B you can buy properties ,you can do whatever you like with your income. However you can get advice from an immigration attorney about the best ways you can go about investing in rentals and managing those properties.