Help, Is this legal?

Is it legal to buy clomid online from a pharmacy site? Without having a doctor proscribed it to you. I just don't wanna get into trouble