Yes. 2009 dollars.
It's based on numbers from http://www.measuringworth.com. The 1791 gold price was $19.39 and the CPI was 9.1 compared to today's 236.3. So $19.39 / 9.1 X 236.3 = $504.