SSA Budget Accounting

A question arose last Tuesday on how the SSA funds are accounted for in calculating the Federal deficit. So I started looking around and was surprised how long it took me to find an answer. If the SSA is off-budget, then its monies don’t count to the deficit/surplus figures (if I have that right)