If possible you should build the deck so that it is free standing from the house. Also make sure that you you install rain gutters over any areas that may have splash from the roof and would cause rot. Even just dew dripping from the roof or overhangs can cause rot over time.