Does clomid really work to get pregnant?

My husband and I have been trying to get pregnant for awhile now and nothing yet. I have been doing some research and came across clomid and I was wondering if anyone has tried it and gotten pregnant before with this? Thanks in advance!