Clomid?

Should i ask my dr for clomid if i am having trouble getting pregnant? WhT does it do?