That only works for certain games. (Usually non-steamwork based games or old games which have been ported over to Steam. AI War is one such game.)
I haven't tried actually installing a game without connection though, but I am reasonably certain Steam needs an internet connection to verify the game files and download any that might be missing. Need to investigate this further.