Yes, you can receive dividends as long as this is considered passive income and you are not doing any type of work that would be considered as income generatingj since that is not permitted for someone in B-1/B-2 status.  You should be careful with this and best to receive those dividends in your home country.