Yes. Code requires a permit for any deck that serves an exit door regardless of whether it is attached to the building or free standing. You do not need a permit if you are replacing deck boards. You do need a permit if you are replacing anything structural (ie. railings, joists, etc.) If your deck/project is not attached to the home, is less than 200 sq. ft. and more than 10 ft. away from the home, a permit is not required.