Does clomid really work?

I have an irregular period but really want to get pregnant. Heard about clomid but don't know if it's for me