You can use pressure treated lumber, but even a better choice would be composite deck material. And go with 2x6.