Very basically yes.
This is one of the designs they used during WW2, but it produces a very large bomb, in terms of size and mass, for a relatively small detonation.
The modern method is shaped explosives and enrichment with Plutonium.
These are known as Gun and Implosion types.
http://en.wikipedia.org/wiki/Nuclear_weapons - good place to start.