Deductions & credits

Thank you. I am resident for tax purposes (I have been in the US since 2018). So, am I still allowed to own shares of a foreign company?