Best to call your local Apple store to confirm for what it is you want to buy; but, I have purchased both software & a computer with my gov't discount before. Just bring your ID.
There was one situation which we couldn't do something in the store - might have been software for education (teacher wife), however.
Hope that helps.