Yes. You are required to secure adequate accommodation before you travel to Portugal. Although you do not need to buy property, you need to have a long-term rental lease (minimum 12 months).
Airbnb or temporary rentals do not qualify. To learn more about finding a lease, this Facebook group is an excellent resource.