DirectX is a runtime environment for multimedia and graphics (it's basically a library of programming functions used to render media), so you do not need to have a discrete graphics card to use DirectX. However, you will need some sort of graphics device (ie, on the CPU or motherboard) that supports DirectX. All of the newer onboard GPUs and discrete graphics cards support DirectX.
What exactly are you trying to do?