While you can normally walk between terminals A and D without leaving the secure area there is some on going renovation construction which sometimes blocks the "secure" passageway. What the situation will be at the time you are traveling remains to be seen. Regardless, the entrance to the airport hotel is outside the secure area so you'll have to exit the terminal anyway.