No, there are no restrictions on property ownership for D2 and D7 Visa holders in Portugal. You are free to buy property while holding either visa type. However, it does not guarantee Portuguese citizenship. A common misconception is that purchasing property guarantees citizenship in Portugal, but this Golden Visa law has since been changed.